Skip to content

kintohub/prisma1x-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prisma1x on KintoHub example

Quick example of getting prisma 1x on kintohub. Due to the configuration file being in an environment variable, we had to create a Dockerfile for this.

This is also an example with Postgres only at the moment. but can easily be changed in the prisma.config file and docker-compose file.

Requirements

  • Install Docker 2.x

Getting setup locally.

  1. Run docker-compose up -d
  2. Now you can accesss the endpoint at localhost:4466

Getting setup on KintoHub

  1. Fork or click "Use this Template" at the top right of the repository
  2. Login to kintohub
  3. Connect your git repository and make sure the forked or template you created has given access to KintoHub
  4. Create a new Website kintoblock
  5. Set the Name and then choose Dynamic Web App
  6. Choose Language Dockerfile
  7. Set Port to 4466
  8. Hit Create Website!
  9. Once the build is complete go to Projects on the left side bar
  10. Create a new project
  11. In the Add KintoBlocks section, search for Your Block you just created
  12. In the Add KintoBlocks section, search for Postgres
  13. Hit Create Project at the bottom right

This will take 2-3 minutes. The logs for your Prisma block will initially say "connection failed" while postgres is booting up. But after a couple minutes it should show up successfully

Production?

Make sure to change the default password for your postgres and the value in your prisma config

If you are looking to use this in production, reach out to the Kinto team in Discord and we'll create an example on how to Encrpyt your password successfully and setup Postgres for production

Releases

No releases published

Packages

No packages published