Explore Repo »
View Demo
·
Report Bug
·
Northcoders News API version: 1.0.0, a backend project, serving Northcoders news articles, topic comments etc
GET /api: Returns a JSON of all endpoints
- Node: 21.6.2
- PostgreSQL: 14.11
- pg: 8.7.3
- pg-format: 1.0.4
git clone https://github.com/gabenorthcoder/project.git
Make sure you use the example env file format to create two env files and have the names saved in them.
- env.test <PGDATABASE=nc_news_test>
- env.development <PGDATABASE=nc_news>
npm install # Installs all node_modules with all dependencies
npm start # Start server in production (with node)
npm run dev # Start server in development mode (with nodemon)
npm run test # Run Jest tests
npm start # Start server with node
npm run setup-dbs # Setup Development Databases
npm run seed # Creates database tables and inserts seed data in development mode
npm run seed-prod # Creates database tables and inserts seed data in production mode