Link to hosted version: https://nc-news-4amo.onrender.com/api
- Summary of the project
- How to use the project
This project creates a server for a news website called Northcoders News. I completed this project as part of the software development training bootcamp at Northcoders.
I used the Node.js web application framework Express to create the server. I created multiple end points to make the server dynamic, such as GET, POST, PATCH and DELETE. Please see the enpoints.json file for a full list of all endpoints including a description of their functionality.
I used the MVC model to structure the project.
I wrote the application using full Test Driven Development (TDD). The tests for the application can be found in the tests folder. The tests also account for error handling and consider user error.
I am hosting the app online here: https://nc-news-4amo.onrender.com/api
In the future I hope to implement a frontend user interface.
git clone https://github.com/2202Hannah/be-nc-news-hb
express version 4.18.2 minimum
npm install express
pg version 8.8.0 minimum
npm install pg
dotenv version 16.0.3 minimum
npm install dotenv --save
File name: ".env.development" content: PGDATABASE=nc_news
File name: ".env.test" content: PGDATABASE=nc_news_test
npm run seed
npm run test