Link: https://be-news-api-h65m.onrender.com
An API for the purpose of accessing application data programmatically. The intention here is to mimic the building of a real world backend service (such as Reddit) which should provide this information to the front end architecture.
-
Clone this repo. (For instructions on how to clone, click here.)
-
Run
npm i
to install dependencies. -
Run
npm setup-dbs
to set up local database. -
Run
npm run seed
to seed local database. -
Run
npm run test
to run tests. -
Create
.env.test
and.env.development
in the root of the folder. Into each, addPGDATABASE=
nc_news_test
andnc_news
respectively.