Simple quiz application, built principally for learning purposes regarding Rust and Nextjs (app router).
The database has been populated with questions for some unibo exams:
Feel free to wipe the database and add your own questions. As for now you will need to manually insert them.
- Install stable Rust
- Install npm
- Clone the repository
- The .env files are already set up for both the frontend and the backend, but you may change them according to your needs
- Run the backend by going into the
backend-next
folder and runningcargo run
- Note that you can install cargo-watch and run
cargo watch -x run
to automatically recompile the backend when a file changes
- Run the frontend by going into the
frontend-next
folder and runningnpm run dev
- The app will be running at http://localhost:3000
- Install docker. No need to install rust or npm since the app will be running in a docker container
- Clone the repository
- Run, in the root folder,
docker-compose up --build
- The app will be running at http://localhost:3000