An API with user posts and data for a future frontend P2P forum website project
Live API available here
URL: www.tk-news.onrender.com/
To view locally clone or download repository then navigate into directory where it is saved and follow below steps..
For security reasons, environment files are gitignored. In order to set up the environment, the cloned user will need to set up two files named:
Within these files insert the following
the database names can be found in ./db/setup.sql
Install required packages.
To run the API locally
Responds with a json representation of all the available endpoints of the api with additional information on each
Responds with an array of all topics
Responds with an array of all articles
Responds with the article object with the corresponding article id
Responds with the comments from a specific article
Responds with an array of all users
Inserts the comment provided into the database and responds with the inserted comment
Adds the number of votes provided in the body to the specified article
Deletes the specified comment and responds with no content