This website allows you to create topics, questions, and add answers to them. You can also do small quizzes to review topics. The application uses the Deno Oak library to control the frontend and Playwright for automatic end-to-end testing. Although the application is fully rendered on the server, some client-side JavaScript is used to control small aspects of the site. The application is deployed to the Render.com website until 4 august 2023, you can find it here: https://learninghub.onrender.com (may be down sometimes)
You can use admin account to test the website (admin@admin.com, 123456) or normal account (normal@normal.com, 123456)
To start the application, follow these steps:
- Download the source code from the repository.
- Install Docker Compose if you haven't already.
- In the root of the project, run the following command:
$ docker-compose up
The Deno container does not work well on Apple ARM chips. If you want to run the application on these machines, you can do nothing, because the project is already set up to work. If you have a windows machine and want to use an original container, change the first line in the Dockerfile in the root drill-and-practice directory from FROM lukechannings/deno:v1.29.2 to FROM denoland/deno:alpine-1.29.2
The application provides some end-to-end tests, which can be found in the e2e-playwright/tests folder. To run the tests, execute the following command in the root of the project:
$ docker-compose run --entrypoint=npx e2e-playwright playwright test && docker-compose rm -sf
If you add own tests, remember to run docker-compose rm -sf command in case of tests fail