Welcome to my Northcoders backend project. This the backend portion of the final app. Here you will find all the information you need to get the app up and running.
You can find a live version here.
(This will default to the available endpoints and what you can expect to find at them)
Check the health of the connection
Provides an array of all the topics
Provides an array of articles
Provides an array of all users
Provides a single article when provided a valid comment_id
Provides all comments associated with the provided article_id
Allows the user to post new comment.
Post object format:
{
username: "inputtedUserName"
body: "Sample body
}
Allows the user to increment comment votes to the inputted article_id
Patch object format:
{
inc_votes : 1
}
Allows the user to delete the article at inputted article_id
Please note, no response will be given except the appropriate status code.
First you need to clone the rep down to your own device. To do this open your terminal and navigate to where you would like to store the project. Then enter the following command:
git clone https://github.com/dan-gruitt/be-nc-news.git
👉 dotenv
👉 express
To seed the database run the below command in the command line
npm run seed
You will need to create the following three files installed in the root directory
this file should contain the following line:
PGDATABASE=nc_news;
this file should contain the following line:
PGDATABASE=nc_news_test;
this file should contain the following line:
DATABASE_URL=<URL>