Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

telemark/minelev-buddy

Repository files navigation

Build Status js-standard-style

minelev-buddy

Buddy service for MinElev

API

All API calls needs an Authorization header with valid jwt

GET /students?name={name}

Search all your students

GET /students/{id}

Get a specific student

GET /students/{id}/contactteachers

Get all contact teacher for a given student

GET /teachers/{id}/contactclasses

Get all contact classes for a given teacher

GET /teachers/all

Get all teachers

GET /classes/{id}/students

Get all students in a class

Development

Add a local .env

NODE_ENV=development
BUDDY_API=api-for-buddy-ws
JWT_SECRET=jwt-secret
PAPERTRAIL_HOSTNAME=minelev
PAPERTRAIL_HOST=tfk-papertrail-host
PAPERTRAIL_PORT=tfk-papertrail-port

Start the dev environment

$ now dev

Deploy to ZEIT/Now

Configure now.json

Run the deployment script

$ npm run deploy

Related

License

MIT