Skip to content

Test project with prisma2, expressjs and docker compose

Notifications You must be signed in to change notification settings

kwop/prisma2-docker-compose

Repository files navigation

SETUP

Installation

This project uses a containerized mysql database, node server, and mysql admin client. Follow these steps to set up your own demo database that lets you perform sigma client operations.

1. Create the infrastructure

make start

On first time docker infrastructure creation, nodemon make some time to initialize. Just check the logs:

make logs

wait for the line :

node-prisma | [nodemon] starting node app.js

2. Introspect the database

make introspect

3. Test the app endpoint

curl --location --request GET 'localhost:3000/' 

4. Show the app logs

make logs

Troubleshoot

Show Makefile help

make 

Connect to node container

make connect

About

Test project with prisma2, expressjs and docker compose

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published