Skip to content

franklinekoh/twitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twitter API

A set of API endpoint that mimics basic twitter features

Requirement

  • Nodejs
  • sql
  • redis

Local Setup

  • cp .env.example to .env and set your environment variables.
  • in your terminal, cd to app root
  • run npm install
  • run npm start

test

  • Please note that I only wrote the unit and integration test for the users module, due to time constraint
  • Follow the instructions in the Local Section Setup Above.
  • navigate to database folder from root run cd src/database
  • run npx sequelize-cli db:migrate
  • run npm test
  • if you experience eslint errors run npm pretest -- -- fix
  • visit http://localhost:${PORT}
  • to access auth protected routes pass Authorization as header parameter and Bearer <jwt token> as value

Documentation

local doc

  • visit http://localhost:${APP_PORT}

live doc

Live Url

  • https://arcane-earth-46866.herokuapp.com/
  • Please note that you may get a connection timeout error. Like so { "errors": { "message": "connect ETIMEDOUT", "error": {} } } This is because this app was deployed to heroku free dyno. In this case. please try again with a faster internet.

About

A set of API endpoint that mimics basic twitter features

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published