Skip to content

nguyenphucbao68/graphql-prisma-boilerplate

Repository files navigation

Description

This is a boilerplate for Node.js project with TypeScript, Express, Prisma, GraphQL, PostgreSQL, and Docker.

Installation

1. Setup .env

cp .env.example .env

2. Setup with Docker

Download Docker at https://docs.docker.com/get-docker/

Run this command to build docker environment.

docker-compose up --build -d

Run

1. Install Node.js

Go to https://nodejs.org/en/ and download the install

2. Install dependencies

yarn install

3. Start the project

# Run in development mode
yarn dev

# Run in production mode
yarn build
yarn start

4. Sync schema with database

yarn migrate:init

5. Seed

yarn seed

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published