This project is a a RESTful API for a news article platform that allows users to view articles, leave comments, and interact with the content in various ways. It is built using Node.js, Express, and PostgreSQL.
- Node.js v18.19.1
- PostgreSQL 16.4
-
Open your terminal and run the following command to clone the repository to your local machine:
git clone https://github.com/PhilTBatt/be-nc-news
-
Navigate into the cloned repository adn run the following command to install the required dependencies:
npm install
-
Create a file named
.env.development
and add the following line:PGDATABASE=your_development_database_name
-
Create a file named
.env.test
and add the following line:PGDATABASE=your_test_database_name
-
Run the following command to seed the local database:
npm run seed
-
To execute the tests, use the following command:
npm test
This portfolio project was created as part of a Digital Skills Bootcamp in Software Engineering provided by Northcoders