A quiz app using Go for the backend and React for the frontend along with RESTful API.
The packages used in go are:
- github.com/gorilla/mux
- github.com/rs/cors
- github.com/jinzhu/gorm
- github.com/jinzhu/gorm/dialects/sqlite
- github.com/gorilla/sessions
They can be installed using:
go get -u -v github.com/gorilla/mux
go get -u -v github.com/rs/cors
go get -u -v github.com/jinzhu/gorm
go get -u -v github.com/jinzhu/gorm/dialects/sqlite
go get -u -v github.com/gorilla/sessions
To run the app:
- Navigate to the go/src directory and run the following commands:
go run main.go
- Navigate to the react-app/ directory and run the following commands:
npm install
yarn start
- Vist localhost:3000/
- Login/Registration
- Quizzes, each of which has multiple choice questions
- Admin login (admin can create, edit, delete quizzes and quiz questions)
- Scoreboard that tracks all the quizzes that the user has ever played
- Leaderboard that shows the highest in each quiz
- Each quiz has three lives