ChaiyapatOam / node-ts-boiler-prisma

πŸ—‚The Starter Boiler Template For Developing with NodeJs Express TypeScript and Prisma

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

πŸ—‚The Starter Boiler Template For Developing with NodeJs Express TypeScript and Prisma


Languages

Language:TypeScript 84.8%Language:Dockerfile 15.2%