Backend technologies: TypeGraphQL, GraphQL Yoga, PostgreSQL
- Run
npm install
to download required dependencies - Open your .env file (create one if needed) and paste
POSTGRES_PRISMA_URL="postgresql://postgres:postgres@localhost:5432/dev"
into it. This is for connecting to the Postgres database within the docker container. - Run
docker-compose up -d
to start the docker container. Make sure Docker is open. - Run
npx prisma migrate dev --name init
and thennpx prisma db seed
to seed the database. - Run
npm run dev
to start the application. It should be viewable atlocalhost:3000
with the GraphQL query interface atlocalhost:3000/api/graphql
. - When you're finished,
Ctrl + c
to exit dev and rundocker-compose down
.