If you think it is useful, please star this repo. Happy coding! XD
Expertiza is a web application where students can submit and peer-review learning objects (articles, code, websites, etc). It is used in select courses at NC State and by professors at several other colleges and universities.
Install Docker and Docker-compose
Manage Docker as a Non-root User
sudo usermod -aG docker $USER.
- After executing this command, you do not need to run docker command as root user. Reference: [link]-(https://docs.docker.com/engine/installation/linux/linux-postinstall/#manage-docker-as-a-non-root-user).
- Log out and log back in so that your group membership is re-evaluated.
Download Expertiza Scrubbed Database
Download Expertiza Scrubbed Database from this link. And unzip the file.
Fork, Clone and Run Setup Script
Fork Expertiza master branch, git clone Expertiza code base. And run the command
docker-compose.yml.example and Modify
- Modify Line 25 in
/your/database/folder/path) to the directory where you store Expertiza Scrubbed Database.
- [Optional] Change the
MYSQL_ROOT_PASSWORD(Line 27 in
password based on database service name (Line 21 in
MYSQL_ROOT_PASSWORD (Line 27 in
Start Docker Compose at Backend
docker-compose up &. Please wait for MySQL to setup (2-3 minutes), then you should be able to access Expertiza via
0.0.0.0:3000 on the host machine.
docker exec -it [container_id] RAILS_ENV=development rake db:migrate.
docker psand replace the
[container_id]in above command to current container id of
- Instructor account:
- Student account:
-You can find more usernames in
Userstable, and all passwords are
docker images docker ps docker exec -it [container_id] bash docker stop [container_id] docker-compose up docker-compose down docker-compose logs
If you have any questions, please post on Piazza!