Giter Site home page Giter Site logo

githubuser1116 / backend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from seng499-company-4/backend

0.0 0.0 0.0 734 KB

Back end code repository for SENG499 Summer 2022 project.

License: MIT License

Shell 1.33% JavaScript 0.31% TypeScript 98.04% Dockerfile 0.31%

backend's Introduction

Backend

Back end code repository for SENG499 Summer 2022 project.

Develop

To run the backend locally you need to run a Postgres database and the GraphQL server separately. After cloning the repo, follow these steps to get things up and running:

  1. Run npm ci to install the project's dependencies
  2. Run docker-compose up to boot up a Docker container running the Postgres database
  3. Run ./setup.sh to start the GraphQL server at http://localhost:4000/. This script does the following:
    • Runs necessary database migrations
    • Seeds the database with dummy data for testing
    • Runs the server (automatically reloads with changes to codebase)

Authorization

To run queries and mutations in Apollo Server that rely on authentication, you need to pass a valid token in the Authorization request header. You can do that by going to the Headers tab near the bottom of Apollo Server:

Screen Shot 2022-06-21 at 10 57 35 AM

The following tokens can be entered for different testing purposes:

  • User: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjM1LCJpYXQiOjE2NTU4MzQyMDJ9.LVAWpkgfM59R1aXVhkjxwMCw9zLlohEKgcxMAunLVn4
  • Admin: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjQwLCJpYXQiOjE2NTU4MzQzNjd9.dzq10dUHj-KGGrAbgpjb3AkfqNTUyHwfBcncrBKYoPA

Contributors

  • Keith Radford (@keithradford)
  • Anmol Monga (@a-mon)
  • Finn Morin (@rcrossf)
  • Eduardo Szeckir (@szeckirjr)
  • Peter Wilson (@peterrwilson99)

backend's People

Contributors

szeckirjr avatar keithradford avatar rcrossf avatar bmazerolle avatar peterrwilson99 avatar sam-warren avatar a-mon avatar dependabot[bot] 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.