logs service for minelev
All API calls needs an Authorization header with valid jwt
PUT /loqsAdd a new log
GET /loqs/:idGet a spesific log
DELETE /loqs/:idDeletes a spesific log
POST /logs/searchSearch logs
POST /loqs/:id/statusUpdate a logs list of statuses
GET /queue/nextGet next log from queue
DELETE /queue/:idDeletes log from queue
GET /queue/countGet number of logs in queue
GET /classes/:schoolIdGet all classes for schoolId
You'll need the now-cli installed
.env file$ now dev.env
NODE_ENV=development
MONGODB_CONNECTION=connection-to-a-mongodb-compatible-api
MONGODB_COLLECTION=logs
MONGODB_NAME=minelev
JWT_SECRET=whatever-you-want
PAPERTRAIL_HOST=does-not-matter-in-dev-mode
PAPERTRAIL_PORT=does-not-matter-in-dev-mode
PAPERTRAIL_HOSTNAME=does-not-matter-in-dev-mode
This service is created to run on the ZEIT/Now serverless infrastructure.
Make sure the settings in now.json matches your environment.
Run the deploy script.
$ npm run deploy
Content type
Image
Digest
Size
34.1 MB
Last updated
over 7 years ago
docker pull telemark/minelev-logs