Coded by: Anchit Gupta
This is a Go server that implements REST API and interacts with the database at the backend. The front end is a React application that is an interactive quiz. This was SSAD Assignment 2.
- Admin privileges to one user along with admin panel
Admin can:
- View/Create/Delete quizzes
- Create/Delete/Edit questions/options in each quiz
- View all users
- Delete users
- Registration and login for users
- Multiple genre of quizzes
- Each user can attempt a quiz once(so attempt carefully)
- At least two different types of questions
- Global Leaderboard across genre
- Powerups(used once per quiz): -Reveal the number of correct options. -Reveal the complete ans.
- fmt
- github.com/gin-contrib/cors
- github.com/gin-gonic/gin
- github.com/jinzhu/gorm
- github.com/jinzhu/gorm/dialects/sqlite
Directory/:
--go/
---react-app/
---README.md
In one terminal:
cd ./go/src
go run ReactGoQuiz.go
In another terminal:
cd ./react-app
yarn start