I have created this as a back-end project while doing the Software Development Bootcamp with Northcoders. The NC News API uses psql to set up a database representing a social media platform where users can post and discuss a wide variety of content covering many topics (similar to Reddit). The server is now live, and hosted here! 😄 🥳
# Clone
git clone https://github.com/j3llybean42/be-nc-news.git
# Install dependencies
npm install
- Create 2 files, ".env.test" and ".env.development"
- In the .env.development file, add "PGDATABASE=database_name"
- In the .env.test file, add "PGDATABASE=database_name_test"
- Add your .env files to the .gitignore file, or use ".env.*"
npm run setup-dbs
npm test
npm run seed
npm run start
Open http://localhost:9090 in your browser
open http://localhost:9090
Project created with:
- Node version: v21.5.0
- Postgres version: v14.10