Skip to content

Latest commit

 

History

History
59 lines (47 loc) · 1.04 KB

README.md

File metadata and controls

59 lines (47 loc) · 1.04 KB

Node TS Express and Prisma

This Repository is a boilerplate to build a RESTful API with Express.js and Prisma using TypeScript and yarn for package management

Usage

  • 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

Folder Structure

.
├── 📂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