Welcome to my first Northcoders project!
I'm building a news API with the skills I've learned so far, try it for yourself here
^ you'll find the list of possible endpoints at this link, have fun!
This project is an API that retrieves news data across a number of tables:
- Articles
- Comments
- Topics
- Users
You could sort the articles and/or order them with queries too!
You can also do some cool things like:
-
Add a comment
{ "username": "your_name", "body": "your_comment" } -
Update the votes on an article
{ "inc_votes": 5 } { "inc_votes": -10 } -
Delete a comment (by providing the comment_id in the path)
Please feel free to clone my project and run it locally. Follow these steps:
-
Clone the repo with "git clone https://github.com/RubyEdwards/my-nc-news.git"
-
Install all the necessary dependencies with "npm install"
-
Create an environment file (.env.*) in the root for each of your databases
- .env.development (set PGDATABASE= your_database here)
- .env.test (set PGDATABASE= your_database_test here)
-
Seed the databases with "npm run seed"
-
Run tests using "npm run app"
Minimum versions required:
- Node - v22.9.0
- Postgres - 14.13 (Homebrew)
This portfolio project was created as part of a Digital Skills Bootcamp in Software Engineering provided by Northcoders