Tweeter is a single-page Twitter clone, where users can create short posts of up to 140 characters and have them append to the main page. Posts are sequential, with the most recent posts appearing at the top of the page. To do so, Tweeter fetches a list of posts from a simplified ‘server’ and allows users to add posts to this list dynamically.
This app is build with Javascript, jQuery and AJAX on the front-end, and with Express and Node on the back-end.
- Start by writing a tweet in the tweet box and clicking on "Tweet". This will "Submit" the tweet to the back-end via an AJAX request.
- A successful POST request will then GET the tweet object back from the back-end and update the feed without having to refresh the page.
- An error message will be displayed if an empty tweet or a tweet longer than 140 characters is being submitted.
- This app uses responsive design and will adjust depending on the screen size.
Main page form
Error displayed on too long tweet
Main page on tablet vieww
- Install dependencies using the
npm install
command. - Start the web server using the
npm run local
command. - The app will be served at http://localhost:8080/.
- Go to http://localhost:8080/ in your browser and write a tweet!
- Express
- Node 5.10.x or above
- nodemon
- chance
- md5