/twitter-clone

Twitter REST API Clone

Primary LanguageJavaScript

Twitter Clone

Cloning twitter and change the flavour a bit :D

Features

  1. Tweets
  • Create chaining tweet
  • Update individual tweet
  • Delete tweet
  • Get tweet (infinite scroll)
  1. Users
  • Sign up / in
  • Log out
  • Get their profile
  1. Like
  • Like tweet
  • Dislike tweet
  1. Following system
  • Follow user
  • Unfollow user

How to spin this app

you can use your own MySQL and Redis install like usuall, but im using docker to run them. And make sure to have Node JS v16 or above, and postman installed (for testing purpose)

  1. clone this repo git clone http://github.com/zulfikarrosadi/twitter-clone.git
  2. change the current dir cd twitter-clone
  3. change the database connection string in env file
  4. run npm i
  5. create MySQL database called twitter_clone
  6. migrate the db npx prisma migrate dev --name "init"
  7. turn on MySQL and Redis using docker or run it in your way docker-compose up -d
  8. run npm run dev
  9. import the Twitter Clone.postman_collection.json to Postman
  10. and test the available endpoint