Skip to content

syntnc/twitter-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assignment 4 - Twitter REST API Backend

IIIT Allahabad - Sayantan Chatterjee - IIT2015511

Postman collection

Postman Collection

Contents

About

Twitter-like REST API using Node.js having functionalities:

  • Authentication / Login
  • Create / Read / Delete tweeets
  • Reply to a tweet
  • Follow / Unfollow users

Requirements

  • Node.js
  • MongoDB

Documentation

Check ...

Usage

  • Modify the configs in config.js. Make sure the mongodb instance is up and the database is created. There are three parameters to specify - JWT Signing Key, MongoDB database URL, and port.
  • Install dependencies

    npm:

    npm install
    

    yarn:

    yarn install
    
  • Run

    npm run start
    
  • Test

    npm run test