A REST API supporting a news web application.
Hosted here.
- Node.js (v21.6.2)
- Postgres (v15.6)
- Clone this repo.
- Create files
.env.development
and.env.test
in the project root directory. - Add the line
PGDATABASE=nc_news
to.env.development
andPGDATABASE=nc_news_test
to.env.test
. - Run
npm install
to install dependencies. - Run
npm run setup-dbs
to create local test and development databases. - Run
npm run seed
to seed local development database.
- Run
npm test
to run tests. - Run
npm start
to start server.