p0lloc / quiz-platform

Realtime quiz platform in Svelte/Go
9 stars 0 forks source link

How to run #1

Open voshond opened 1 month ago

voshond commented 1 month ago

Hey,

after running the go server and running the FE, i looked into the routes.

I then tried to go to localhost/edit/1 to setup a quiz for the ID 1, however this routed me to the player join view anyway. Not sure if i did something wrong.

Would you be able to update the readme to include some screenshot as well as a setup guide?

Wanted to use this for my team to run some fun quiz

Thanks (:

p0lloc commented 1 month ago

Hey! This project was made for a YouTube series: https://www.youtube.com/watch?v=gQdvg0uI1yg, most information you need is over there.

The router is hash based so you need to put a hash like localhost/#/edit/1 for it to work. I realize now that I didn't actually make a view for creating a new quiz, so you also need to insert one into the database manually.

The database name should be quiz, and you can create an empty quiz like db.quizzes.insert({"name": "Test quiz", "questions": []}). After that you should be able to edit it from the page!