Skip to content

a Northcoders bootcamp project with the goal of building a backend service mimicking a news site or forum (such as Reddit)

Notifications You must be signed in to change notification settings

HudaifDaif/saiddit-backend

Repository files navigation

Saiddit API

Currently hosted at: https://saiddit.onrender.com

Summary

This project aims to mimic a service similar to Reddit ( a network where articles can receive both positive and negative votes).

Installation

Cloning the repository

Run the following command in your terminal to clone the repository in the current directory:

git clone https://github.com/HudaifDaif/saiddit-backend.git

Creating environment variables

In order to be able to run this project locally, you will need to create the environment variables required to connect to the correct postgres database. This will be achieved by utilising the npm dotenv package. The steps are as follows:

  • Create two files in the root directory: .env.development and .env.test
  • Within each file create the corresponding PGDATABASE environment variable (please see .env-example). The variables required are:
    • .env.development - For connecting to our development database.
      • PGDATABASE=nc_news
    • .env.test - For connecting to our testing database.
      • PGDATABASE=nc_news_test

Installing dependencies

Once these steps are completed, run npm install to install all of the required packages for this project.

Minimum requirements

  • Node - v20.8.1
  • Postgres - v15.4

About

a Northcoders bootcamp project with the goal of building a backend service mimicking a news site or forum (such as Reddit)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 23