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.
- node 10.15.3+
- npm 6.9.0+
- MySQL 5.6+
> git clone https://github.com/rkinabhi/postwitter.git
> cd postwitter
> npm install
- Create an empty database with name postwitter in MySQL.
- Go inside root directory of the project.
- Set database credentials (username, password and host) for "development" in config/database_config.json.
> npm start
- Create an empty database with name postwitter_test in MySQL.
- Go inside root directory of the project.
- Set database credentials (username, password and host) for "test" in config/database_config.json
> npm test