An open API service indexing awesome lists of open source software.

https://github.com/syed007hassan/node-express-js-ts-templates

Template repository for an MVC-based REST API using MongoDB, Node.js and TypeScript along with containerization.
https://github.com/syed007hassan/node-express-js-ts-templates

docker express mongodb mvc nodejs typescript

Last synced: about 1 month ago
JSON representation

Template repository for an MVC-based REST API using MongoDB, Node.js and TypeScript along with containerization.

Awesome Lists containing this project

README

        

# Node-Express-Mongo-REST-Template
Template repository for an MVC-based REST API using MongoDB, Node.js, TypeScript, and containerization.

## [Template-1](https://github.com/Syed007Hassan/REST-Typescript-Template/tree/main/Template-1)
- **Environment, Typescript, Nodemon setup**
- **MongoDB & Mongoose connection, Database creation**
- **Controllers creation**
- **Middlewares creation**
- **Routes creation**
- **JWT-based authentication**
- **Postman testing**
- **CRUD on User collection**
- **Docker container setup**
- OpenAI Module

## Create a .env file
```
PORT=5000
MONGOURL=
SECRET_KEY_FOR_CRYPTOJS=
OPEN_API_KEY=sk-xxxx
```

## Start using NPM script

### Install Packages
```
npm i
```

```
npm run start / nodemon
```

## Start using Docker
```
docker-compose up
```

## [Template-2](https://github.com/Syed007Hassan/REST-Typescript-Template/tree/main/Template-2)
- **Same as Template-1 but with Custom Validation and Exception Handling**

## [Template-3](https://github.com/a7urag/node-express-mysql-typescript-api-boilerplate)
- Boilerplate with MySQL and TypeORM

**Leave a star to repo if you find it useful** 🙂