Blogging Application
This app provides following functionality
published
posts and authenticated users to fetch all of their postsHosted via Prisma Cloud and Heroku
Launch Prisma and database
.env
file under prisma
folder with following environment variables
POSTGRES_HOST=<postgres-hostname>
POSTGRES_DATABASE=<postgres-database>
POSTGRES_USER=<postgres-user>
POSTGRES_PASSWORD=<postgres-password>
cd prisma
docker-compose up -d
docker-compose stop
docker-compose kill
docker-compose rm
Deploy the prisma Datamodel. From inside prisma
folder run
prisma deploy -e ../config/dev.env
prisma deploy -e ../config/test.env
prisma deploy -e ../config/prod.env
Install the node dependencies
npm install
Generate the Schema Dependencies
npm run get-schema
Run the App
npm run dev
npm run test