This Repository is a boilerplate to build a RESTful API with Express.js and Prisma using TypeScript and yarn for package management
- To install package
yarn
- To start development
yarn dev
- To start production
yarn build
yarn 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
├── yarn.lock
├── README.md
└── tsconfig.json