Skip to content

web application to exercise with any kind of quiz ✅ ❌

Notifications You must be signed in to change notification settings

ilcors-dev/litequiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Litequiz

Simple quiz application, built principally for learning purposes regarding Rust and Nextjs (app router).

Database

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.

How to run in development mode

  1. Install stable Rust
  2. Install npm
  3. Clone the repository
  4. The .env files are already set up for both the frontend and the backend, but you may change them according to your needs
  5. Run the backend by going into the backend-next folder and running cargo run
  • Note that you can install cargo-watch and run cargo watch -x run to automatically recompile the backend when a file changes
  1. Run the frontend by going into the frontend-next folder and running npm run dev
  2. The app will be running at http://localhost:3000

How to run in production mode

  1. Install docker. No need to install rust or npm since the app will be running in a docker container
  2. Clone the repository
  3. Run, in the root folder, docker-compose up --build
  4. The app will be running at http://localhost:3000