Skip to content

pawelmiklas/graphql-express-api

Repository files navigation

Prerequisites

  • Node.js (21.6 or later)
  • npm (10.2 or later)
  • Docker

Setting up development environment

Installing dependencies

npm install

Setting up PostgreSQL with Docker

docker pull postgres
docker run --name postgres-example -d -p 5432:5432 -e POSTGRES_PASSWORD=postgres postgres

Database setup and seeding

npm run prisma:db
npm run seed

Starting development server

npm run dev

open http://localhost:4000/graphql in your browser

Running tests

npm run test

Prisma studio

npm run prisma:studio

Building and running in production

npm run build
npm start

open http://localhost:4000/graphql in your browser

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published