This is a simple quiz portal designed using React.js and Go-lang.
I have to written 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.
To setup the given project follow the instructions separately for each:
- To install Go on ubuntu Look here
- Next, to install other packages used in this, run following commands from terminal:
- go get -u -v github.com/gin-gonic/gin
- go get -u -v github.com/jinzhu/gorm
- go get -u -v github.com/jinzhu/gorm/dialects/sqlite
- go get -u -v github.com/gin-contrib/cors# Quiz App
This is a simple quiz portal designed using React.js and Go-lang.
- First, install node. Then install yarn.
- Download the project
- React
- cd react-app
- Run
yarn install
or simplyyarn
to install all dependencies - If no error is encountered then run
yarn start
- Go
- cd go
- cd src
- go run '5 - CRUD API.go'
- Registration and login for users
- Sign Up requires email and username to be unique
- Multiple genre of quizzes - Friends, Cricket, General Knowledge, Maths
- Multiple types of questions,MCQ, Single Correct.
- Leaderboard
- Lifeline
- Attempted quiz history
- Admin privileges to one user. He has privilege to do the following:
- View/Create/Delete quizzes
- Create/Delete/Edit questions/options in each quiz
- Create a new genre
- View all users
- Delete users
- The score is displayed after submitting the quiz and entry in leaderboard is made.
- View complete perfomance by viewing the results of previous quizzes attempted.