Skip to content
Juliane Marubayashi edited this page Jul 31, 2022 · 4 revisions

This is the backend for timetable selector.

Installation

Prerequisites

  • docker
  • docker-compose

Installing docker

to install docker, take a look on the official website and follow the Get docker section to install it. If you're using windows, make sure to have the wsl installed.

In case you're using linux, after installing docker check the Manage Docker as a non-root user, so you can use docker without the sudo command.

Usage

⚠️ Warning : In case you have already build the server before and want to build it again, be sure to delete the folder in mysql/data. You can do this by running sudo rm -r mysql/data/. To make your life easier, you can simply run the build_dev.sh script: sudo ./build_dev.sh. The sudo permission is necessary to delete the mysql/data folder.

Development environment

You can start developing by building the local server with docker:

docker-compose build . 
docker-compose up 

As well as the build, the running command can also be executed with the run_dev.sh script by executing: ./run_dev.sh.

⚠️ Warning: it's likely that the first execution of docker-compose up after building won't work, since django doesn't wait for the database being populated to executed. Thus, if that's your ccase, execute it again.

Clone this wiki locally