👨🏾💻 Pape THIAM @mayel15
- Supertest
- Swagger
This is an opinionated boilerplate (template or skeleton, whatever you want) for Express and TypeScript. It uses Prisma as an ORM to easily switch databases with minimal code changes. This repository serves as a template to simplify the creation of new repositories from it.
├── controllers
├── enums
├── middlewares
├── models
├── repositories
├── routes
├── services
└── utils
- ⎒ Clone the project or create a repo git from this template
git clone https://github.com/mayel15/node-express-template
-
👽 Create an
environment files
at the root of the project and name them.env.dev
fordev environment
and.env.prod
forprod environment
. And after that, in those files add theenvironment variables
you need by inspiring you in theenvironment template file
named.env
-
🚀 Run the server app with
Docker
cd node-express-template
docker-compose up -d
-
🕙 Wait a moment
-
⚙️ The server will normally run at
http://localhost:3000/
and the route/docs
is forswagger
-
🎞️ Overview of the runninng server
-
🧪 Run test
npm run test