A developer-oriented local deployment tool for VIAplanner, which can simulate a production environment composed of the frontend, backend, and cron-task scraping
NOTE: This tool is only for local development currently, as production deployment is not structured using Docker Compose.
Prerequisites:
- You have cloned and placed the following repos at the same directory as this repo, with folder names matching repo names
- via-timetable: https://github.com/VIAplanner/via-timetable
- via-api: https://github.com/VIAplanner/via-api
- UofT-Scraper: https://github.com/Kelexer1/UofT-Scraper
docker compose up --buildThis will start the frontend and backend on http://localhost/, and automatically update the database once.
docker compose up frontend backend nginx --buildThis will start the frontend and backend on http://localhost/, assuming that backend has it's environment variables.
The database will not be modified. It is recommended to use a local MongoDB database and populate it once before testing
without automated scraping.