This Repository is a boilerplate to build a RESTful API with Express.js and Prisma
- To install package
npm install
- To start development
npm run dev
- To start production
npm run build
npm run start
- To work with prisma
npx prisma generate
npx prisma migrate dev
.
├── 📂prisma/
│ └── schema.prisma
├── 📂src/
│ ├── 📂controller/
│ │ └── user.controller.ts
│ ├── 📂lib/
│ │ └── prisma.ts
│ ├── 📂middleware/
│ │ └── auth.ts
│ ├── 📂routes/
│ │ ├── index.ts
│ │ └── user.route.ts
│ ├── 📂types/
│ │ ├── 📂express/
│ │ │ └── index.ts
│ │ └── index.ts
│ └── server.ts
├── .env.example
├── package.json
├── pnpm-lock.yaml
├── README.md
└── tsconfig.json