Skip to content

snapcook/server

Repository files navigation

Snapcook Server 🥗

Instalation and Usage Steps

  1. Prepare the environment, clone this repo
git clone https://github.com/snapcook/server.git
  1. Install project dependencies
npm install

Notes:

  • Skip part no. 3 & 4 if you already have PostgreSQL setup in your computer
  • Or, if you prefer use Cloud SQL instance to store your data its fine
  1. Setup docker
docker compose up -d
  1. Check docker is running
docker ps
  1. Run this. Whenever you make changes to your database that are reflected in the Prisma schema, you need to manually re-generate Prisma Client to update the generated code in the node_modules/.prisma/client directory and update the migration:
npx prisma generate
npx prisma migrate dev
  1. Run seed
npm run seed
  1. Run the project
npm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •