- Back-end - Hosted link: https://mkd-nc-news.onrender.com/api
- Front-End - Hosted link: https://mkd-nc-news.netlify.app/
- Front-End - Github link: https://github.com/MKD01/nc-news
'News API' is an API built using Node.js, Express.js and a PostgreSQL database.
you can view the API endpoints in the endpoints.json
file or by going to https://mkd-nc-news.herokuapp.com/api which lists all available endpoints and how they can be interacted with.
- Node.js 17.x
- Postgres 14.x
Application dependencies and versions can be found in the package.json file.
- In your teminal:
$ git clone https://github.com/MKD01/nc-news-be.git
$ cd nc-news
- Initialising Node by installing the required dependencies from
package.json
. In your terminal:
$ npm install
- You will need to create two
.env
files for the app:.env.test
and.env.development
. Into each, addPGDATABASE=nc_news
for the.env.development
file andPGDATABASE=nc_news_test
for the.env.test
file.
- To begin testing or using this app, you will need to setup the database seed it with data:
$ npm run setup-dbs
$ npm run seed
Jest
is the framework used to test this application.- To run tests:
$ npm run test