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.
- Host: GitHub
- URL: https://github.com/syed007hassan/node-express-js-ts-templates
- Owner: Syed007Hassan
- Created: 2023-05-18T19:47:22.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-18T17:02:51.000Z (over 1 year ago)
- Last Synced: 2025-03-25T00:41:37.787Z (about 2 months ago)
- Topics: docker, express, mongodb, mvc, nodejs, typescript
- Language: TypeScript
- Homepage:
- Size: 189 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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** 🙂