This is a repository for a REST API tutorial using Node, Express, Typescript & MongoDB.
Features:
- Environment, Typescript, Nodemon setup
- MongoDB & Mongoose connect, Database creation
- Controllers creation
- Middlewares creation
- Cookie based authentication
- Postman testing
- Create, Read, Update
Node version 14.x
git clone https://github.com/AntonioErdeljac/ts-node-mongo-rest-api-tutorial.git
npm i
In src/index.ts
:
const MONGO_URL = ''; // DB URI
npm start
Running commands with npm npm run [command]
command | description |
---|---|
start |
Starts a development instance of the app |