This is RESTful API that delivers articles, comments and the users information.
https://news-api-j.herokuapp.com/api
/api/topics- Get a list of topics
/api/articles- Get a list of articles
- accepts
sort_by,order,topicquery
/api/articles/:article_id- Get a single article with the requested article_id
/api/articles/:article_id/comments- Get a list of comments
- Post a comment
- Delete a comment
- cors
- dotenv
- express
- heroku
- pg
- husky
- jest
- jest-extended
- jest-sorted
- pg-format
- supertest
- Create two
.envfiles for your project.
.env.test.env.development
- Into each, add
PGDATABASE=<database_name_here>, with the correct database name for that environment.
- run
npm run setup-dbs - run
npm run seed
- run
npm test