This project is a simple Twitter clone API built with Node.js and Express. It allows users to post tweets and retrieve them.
- Post a new tweet
- Get all tweets
- Get tweets from a specific user
POST /tweets
: Post a new tweet. The request body should contain ausername
andtweet
field.GET /tweets
: Get the last 10 tweets.GET /tweets/:username
: Get all tweets from a specific user.
- Clone the repository
- Run
npm install
to install dependencies - Start the server with
npm run start