- Dependencies
NextJS,Tailwind,Redux Toolkit,Redux Toolkit Query,Material UI Data Grid
- Install rimraf to build the typescript project
npm install rimrafthen run the build scriptrimraf dist && npx tsc - Run the development server with auto updates with
npm run build && concurrently \"npx tsc -w\" \"nodemon --exec ts-node src/index.ts\" - Test out the API CALLS with a curl command
curl http://localhost:8000/ROUTE_NAME - Run the development server with
npm run dev
- Installation of DB dependencies
npm i prisma @prisma/client - Initializing prisma
npx prisma init - Prisma schema was created at
prisma/schema.prisma - Set the DATABASE_URL in the
.env fileto point to your existing database - If your database has no tables yet, read
https://pris.ly/d/getting-started - Set the provider of the datasource block in schema: prisma to match your database:
postgresql,mysql,sqlite,sqlserver,mongodborcockroachdb. - Run
prisma db pullto turn your database schema into a Prisma schema. - Run
npx prisma generateto generate the Prisma Client: - Sync your database with the schema
npx prisma migrate dev --name init - Seed your database using
npm run seedand start querying your database. - Tip: Explore how you can extend the
ORMwith scalable connection pooling,global caching, andreal-time database eventsRead:https://pris.ly/cli/beyond-orm