This is a Twitter Clone RESI API. These are all the features supported currently:
- Register a user (with unique USERNAME).
- Login a user (with session management).
- Follow a user.
- Unfollow a user.
- Create a tweet.
- Read a tweet.
- Delete a tweet.
-
Make sure you have following softwares installed:
- Redis (5.0.4) -> https://redis.io/download
- Node.js (8.11.4) -> https://nodejs.org/en/download/releases/
-
Steps to run:
- Open a new terminal window and type the following command:
redis-server1
- Open another terminal window in this folder and type this command - npm install.
- Create a .env file in this folder, set the value of SECRET to anything. It is used for session secret key. For e.g. SECRET = aksdjakdj98
- After this is done, type the following command:
npm run server
The documentation for the API can be found here - https://documenter.getpostman.com/view/5309265/S1ENyJr3