Skip to content

Repository for a REST API using MongoDB, Node.js and TypeScript

Notifications You must be signed in to change notification settings

sanogotech/ts-node-mongo-rest-api-tutorial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Complete Guide To Building A REST API With Node, Express, TypeScript & MongoDB

Untitled design (1)

This is a repository for a REST API tutorial using Node, Express, Typescript & MongoDB.

Video Link

Features:

  • Environment, Typescript, Nodemon setup
  • MongoDB & Mongoose connect, Database creation
  • Controllers creation
  • Middlewares creation
  • Cookie based authentication
  • Postman testing
  • Create, Read, Update

Prerequisites

Node version 14.x

Cloning the repository

git clone https://github.com/AntonioErdeljac/ts-node-mongo-rest-api-tutorial.git

Install packages

npm i

Setup MongoDB URL

In src/index.ts:

const MONGO_URL = ''; // DB URI

Start the app

npm start

Available commands

Running commands with npm npm run [command]

command description
start Starts a development instance of the app

About

Repository for a REST API using MongoDB, Node.js and TypeScript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%