schedulemanager

module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2022 License: Apache-2.0

README

Schedule Manager

Schedule Manager is app for

  1. downloading and parsing PDF schedules with specific layout,
  2. providing these parsed schedules in JSON via web API.

Run with Docker Compose

For development

There must be file configs/docker.dev.json before running.

Default MongoDB connection string is mongodb://user1:test1@host.docker.internal:27017.

docker compose -f docker-compose.dev.yml up -d
For production

There must be file configs/docker.prod.json before running.

docker compose -f docker-compose.prod.yml up -d

Configuration

JSON configuration files are stored in folder configs. Config path must be stored in CONFIG_PATH environment variable.

configs/example.json

{
  "server": {
    "port": 3000,
    "allowed_origins": "*" 
  },
  "mongo": {
    "uri": "mongodb://user1:test1@example.host:27017/"
  },
  "moodle": {
    "host": "https://example.com",
    "username": "",
    "password": "",
    "course_id": 0
  }
}

Directories

Path Synopsis
cmd
manager command
server command
internal
app
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL