Cloning twitter and change the flavour a bit :D
- Tweets
- Create chaining tweet
- Update individual tweet
- Delete tweet
- Get tweet (infinite scroll)
- Users
- Sign up / in
- Log out
- Get their profile
- Like
- Like tweet
- Dislike tweet
- Following system
- Follow user
- Unfollow user
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)
- clone this repo
git clone http://github.com/zulfikarrosadi/twitter-clone.git
- change the current dir
cd twitter-clone
- change the database connection string in env file
- run
npm i
- create MySQL database called
twitter_clone
- migrate the db
npx prisma migrate dev --name "init"
- turn on MySQL and Redis using docker or run it in your way
docker-compose up -d
- run
npm run dev
- import the
Twitter Clone.postman_collection.json
to Postman - and test the available endpoint