Coder Social home page Coder Social logo

be_project_nc_games's Introduction

Introduction to Northcoders House of Games API

The Northcoders House of Games API is a powerful web API built with Node.js and PostgreSQL, providing a backend interface for a board game reviews website. It offers users access to game categories, reviews, and comments, along with the ability to add comments, update review votes, and delete comments. The API is designed to be maintainable and secure, with robust input validation and error handling features.

Follow the instructions below to set up a local copy of the project and start exploring the API.

Getting Started

To get a local copy of the project up and running, follow these steps:

  • clone the repo to your local machine.

Install Node.js and PostgreSQL

  • Node.js: v19.5.0 or later, you can download from the official website: https://nodejs.org/

  • PostgreSQL: v14 or later, you can download from the official website: https://www.postgresql.org/

  • Setting up the Local Database We'll have two databases in this project. One for real looking dev data and another for simpler test data.

You will need to create two environment variables to access them:

  1. create .env.test and have it written inside: PGDATABASE=nc_games_test
  2. create .env.development and have it written inside: PGDATABASE=nc_games

Once you have created the .env files, run the following command to set up the local database:

  • npm run setup-dbs This will create the necessary tables and schemas in both the development and test databases.

Seeding the Database To seed the database with sample data, run the following command:

  • npm run seed This will populate the development database with sample data.

Testing To run tests you will need to install a few Dev-dependencies:

  1. Jest ---> npm install --save-dev jest
  2. Supertest ---> npm install --save-dev supertest
  3. Jest Sorted ---> npm install --save-dev jest-sorted

be_project_nc_games's People

Contributors

anthonymedina avatar nc-paul-rogerson avatar p-copley avatar damz1 avatar dav3rid avatar daviidbartlett avatar bainesface avatar anatdean avatar rogersop avatar alexander-cox avatar sssam-c avatar tomosim avatar douglashellowell avatar augs0 avatar mallionaire avatar itskatherine avatar liam310 avatar xmenbteam avatar antariess avatar elijaharley avatar isabelmaccabee avatar nicola-20 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.