NC News API is a well made project which will allow users to to write articles with different topics. User can comment on articles and vote for their favourite ones. You will be able populate the data based on users, topics, comments, articles.
https://nc-news-9ihg.onrender.com/api
NPM: Version 10.2.3
PSQL: Version 14.10
dotenv: Version 16.3.1
express: Version 4.18.2
express-json: Version 1.0.0
pg: Version 8.11.3
pg-format: Version 1.0.4
jest: Version 27.5.1
jest-extended: Version 2.0.0
jest-sorted: Version 1.0.14
supertest: Version 6.3.4
git clone https://github.com/AmadReihun/be-nc-news.git
npm install
npm install dotenv --save
npm install express
npm install express-json
npm install node-pg-format
npm install --save-dev jest
npm install --save-dev jest-extended
npm install --save-dev jest-sorted
npm install supertest --save-dev
You will need to add the below 2x files to your repo to be able to connect to the two databases locally.
PGDATABASE=nc_news
PGDATABASE=nc_news_test
psql
\c nc_news_test
npm run setup-dbs
npm run seed
npm run test
npm run start
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Please do not hesitate to reach me for any suggestion on question.