Skip to content

telemark/micro-yff-programomrader

Repository files navigation

Build Status js-standard-style

micro-yff-programomrader

microservice for yff programomrader

Update files

$ npm run update-vg3
$ npm run update-vg2
$ npm run update-vg1

API

GET /utdanningsprogrammer

Get a list of all utdanningsprogrammer for yff

$ curl -v https://yff.service.minelev.no/utdanningsprogrammer

GET /utdanningsprogrammer/:id

Get a spesific utdanningsprogram

$ curl -v https://yff.service.minelev.no/utdanningsprogrammer/ba-vg3

Development

Add a local .env file

NODE_ENV=development
PAPERTRAIL_HOSTNAME=yff
PAPERTRAIL_HOST=papertrail-host
PAPERTRAIL_PORT=papertrail-port

Start the development environment

$ now dev

Deployment - ZEIT/Now - Manual

Change content of production.env to match your environment.

Change content of now:alias in package.json to match your domains.

Deploy service.

$ npm run deploy

Deployment - ZEIT/Now - Automatic

Do a tagged release

License

MIT