A set of API endpoint that mimics basic twitter features
- Nodejs
- sql
- redis
cp
.env.example
to.env
and set your environment variables.- in your terminal, cd to app root
- run
npm install
- run
npm start
- 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 andBearer <jwt token>
as value
- visit
http://localhost:${APP_PORT}
- 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.