Skip to content

abhijeethp/postwitter

Repository files navigation

POSTWITTER - TWITTER CLONE

FUNCTIONALITIES

All application routes can be found in the postman collection. The results of each API route and the tests can be found in screenshots.

  • User registration using unique username and a password.

  • User login including session maintenance.

  • Follow / unfollow.

  • Create / read / delete tweet.

  • Unit / Integration tests (for basic and extended functionality endpoints).

  • Like / unlike a tweet.

  • Retweet / unretweet.

  • Replies and threading.


RUNNING THE APPLICATION

Requirements

  • node 10.15.3+
  • npm 6.9.0+
  • MySQL 5.6+

development workflow

> git clone https://github.com/rkinabhi/postwitter.git
> cd postwitter
> npm install

running the server

  1. Create an empty database with name postwitter in MySQL.
  2. Go inside root directory of the project.
  3. Set database credentials (username, password and host) for "development" in config/database_config.json.
  4. > npm start

running tests

  1. Create an empty database with name postwitter_test in MySQL.
  2. Go inside root directory of the project.
  3. Set database credentials (username, password and host) for "test" in config/database_config.json
  4. > npm test

About

Twitter API clone using Express.js & MySQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages