Skip to content
This repository has been archived by the owner on Apr 8, 2019. It is now read-only.

Latest commit

 

History

History
39 lines (31 loc) · 1.22 KB

README.md

File metadata and controls

39 lines (31 loc) · 1.22 KB

attendance-gql-api DEPRECATED

This server api has been moved into https://github.com/back2bikes/attandance

This is essentially a fork of the GraphQL/React project https://github.com/Back2bikes/b2b-gql-react that splits out the GraphQL server functionality of that project.

The benefits of this approach are:

  • Its easier to work on the Front and the Back end oin parallel
  • It's easier to containerise the back end
  • Test scripts in the project can focus soley on API testing

Installation:

  1. clone this repo
  2. cd ./attendance-gql-api
  3. npm install
  4. export MONGO_URI="mongodb://localhost:27017/b2bikes-db"
  5. npm start (starts the server)
  6. Point your browser to http://localhost:3000/ for the GraphiQL interface to run queries and mutations from a browser

Docker set up and commands

If you would like to run dev / staging using docker use the following commands:

This will build / launch the mongodb and api docker services.

docker-compose up -d

This will stop / start the services without updating or removing the containers.

docker-compose stop
docker-compose start

This will stop the services and remove the comtainers.

docker-compose down

To Do:

  • Look into setting up test cases for the GQL API