Repo for Aalto Grades Program
You can run the development build of the software by running docker-compose --profile dev up
in the root folder of the project.
This command has one requirement which is defining the environmental variable POSTGRES_PASSWORD
before execution.
Demo flow:
$ export POSTGRES_PASSWORD=XXXX
$ docker-compose --profile dev up
If you want to run the build without starting the frontend container or adminer
$ export POSTGRES_PASSWORD=XXXX
$ docker-compose up
If you want to run the build without starting adminer, but with the frontend container
$ export POSTGRES_PASSWORD=XXXX
$ docker-compose --profile prod up
As one of the developers: in order to access the development environment, you may do the following.
- Set up configuration for your Aalto access (only required when logging in for the first time):
# ~/.ssh/config
Host kosh
User hannula7 # REPLACE
Host grades
User hannula7 # REPLACE
- Log in using the provided configuration file (which uses your own SSH config as a base):
$ ssh -F ssh.config grades
- Ensure that the Docker model is running:
hannula7@aalto-grades$ cd /srv/aalto-grades
hannula7@aalto-grades$ sudo docker-compose top
# if not running:
hannula7@aalto-grades$ sudo docker-compose up
- Now, the dev environment services can be accessed from your local computer:
- Backend is at
localhost:3000
- Frontend is at
localhost:3005
- Adminer is at
localhost:8080