Code Monkey home page Code Monkey logo

be-nc-games-project's Introduction

Byron's Backend Project

https://byrons-backend-project.herokuapp.com/api

This is a solo project completed during my time at Northcoders.

I have built an API in order to practise the methods used to build a real world backend service and will use this in my front-end project on this course. In order to interact with this API please follow the link at the top of this README to access the API and get an overview of all available endpoints.

To Use This Repo

In order to use this repo you will need to clone it to your device by entering the following to your terminal:

git clone https://github.com/byronEsson/be-nc-games-project.git

To install dependencies, run npm install.

Databases

The data used in this project are found in /db/data. To seed this data you will first need to create two separate .env files, .env.test and .env.development in the root of this repo. Into each, add PGDATABASE=<database_name_here>, with the correct database name for that environment (see /db/setup.sql for the database names). Add these filenames to the .gitignore file to ensure they aren't pushed to GitHub.

Run npm setup-dbs to create the SQL databases followed by npm seed to seed the devlopment data.

Testing

Tests are run with the command npm test or npm t to run all commands or append the file name of the test suite to run only that. Test suites and their files are found in the __tests__ folder.

The file app.tests.js will reseed the test_data before each test is run so you are not required to do it manually, and the effects of previous tests will not need to be considered for future ones.

The tests make use of jest, jest-sorted and supertest libraries.

Versions

Node.js: v18.7.0 PostgreSQL: v14.5

be-nc-games-project's People

Contributors

byronesson avatar anthonymedina avatar nc-paul-rogerson avatar p-copley avatar daviidbartlett avatar bainesface avatar anatdean avatar dav3rid avatar rogersop avatar alexander-cox avatar sssam-c avatar tomosim avatar augs0 avatar douglashellowell 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.