This repository is the Backend of a 'Reddit-like' application called NC-News. This application allows users to post and read articles on various topics as well as posting comments. This application also has a voting system on both the articles and comments.
Clone this repo:
git clone https://github.com/RyanThomas1214/be-nc-news.git
cd be-nc-newsOnce opened, you should install the dev dependencies using the following command:
npm iAfter initialisation, you can setup the database in the dev environment by using the commands:
npm run setup-dbs
npm run seedOnce the seed file has run you can then start the server by using the command:
npm startWhen the server is up and running you are able to send the API test requests by using programs such as Insomnia. A list of available endpoints can be viewed in your browser on the endpoint:
Once the repository is installed and setup you can run test for all the API endpoints using the command:
npm testAlong with tests for all tha API endpoints you can also test the util functions this repository uses by entering the command:
npm test-utils- Express - Node web application framework.
-
Knex - A SQL query builder.
-
node-postgres - Modules for interfacing with PostgreSQL databases.
Ryan Thomas
GitHub - RyanThomas1214
Hosted using netlify