Skip to content

SRE-ITB/SRE-ITB-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SRE-ITB-backend

Class Diagram

Project Setup (Skip this because it's already done)

  1. Initialize Project and Install Dependencies
npm init -y
npm i express dotenv cors express-validator @prisma/client
npm i -D typescript @types/node @types/express @types/dotenv @types/cors
npm i --save-dev prisma esbuild-register nodemon
  1. Initialize Prisma
npx prisma init --datasource-provider mysql

How to run

  1. Install dependencies
npm install
  1. Make sure the database is up to date to the schema
npx prisma db push
  1. Seed the database (optional)
npx prisma db seed
  1. Run the server
npm run dev

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •