Project made as an assignment project for Data Engineering course 2021/22
- Docker
- make
- docker-compose
git clone https://github.com/mhorod/tanuki.git
cd tanuki
/bin/bash run-release.sh
You can then access the app on http://localhost:3000
First docker ps
to lista active containers
Then run docker exec -it {container} bash
where {container}
is id of
postgres container
Finally inside container run psql -U tanuki
to log into the database
Most of the times navigation on the page should be intuitive.
Main things that may be useful:
-
There is
admin
account which also has passowrdadmin123
. After logging into it you will be able to list contests and users -
Every user in the database has password
admin123
so you can explore website as a randomly generated user -
By default new users are not assigned to any contests.
-
To add your new user to a contest follow:
- Log into
admin
- click
edit contests
and choose contests of your interest - add
admin
as owner and pressedit
- go to the main page by clicking the logo in top left corner
- From managed contests select added contest Now you should see a blue teacher panel
- Click on
Users
, thenadd user
- Select deisred user from the list
- you can now log out and log in as your user
- Log into
-
Student's page is grey, teacher's and admin's are blue
-
Clicking on logo will redirect you back to the main page
- Docker
- docker-compose
- make
To start app in development mode run bash run-dev.sh
. It builds the image with
make
and docker-compose
and then starts the app.
App runs on port 3000
and postgres runs on port 5433
We are aware of permission problem related to the fact that docker connects container files with local ones which makes programs running inside containers have no access to the files.