Skip to content

HIPPOCAMPUS - A quiz application with React.js,Bootstrap for frontend, Golang for backend- gin and gorm libraries.

Notifications You must be signed in to change notification settings

ShashwatNigam99/Quiz-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Quiz-game

HIPPOCAMPUS - A quiz application with React.js,Bootstrap for frontend, Golang for backend- gin and gorm libraries.

Go

Setting up

  • For Ubuntu: Look here
  • For MacOS: Look here
  • Optional: If you want to have your executables to be stored in bin, add the following to your .bashrc:
              export GOBIN=$GOPATH/bin
  • Installing third party packages; use go get. An example:-
        go get -u -v gopkg.in/mgo.v2
  • You'll have to install the packages before you run the code. Packages used in this project -
              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
  • To run a program:-
              go run file.go

React

Setting up

  • First, install node. Then install yarn.
  • Ubuntu:
              curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
              sudo apt-get install -y nodejs
              npm install -g yarn
  • MacOS:
              brew install node
              npm install -g yarn
  • In the app I've made, make sure you run npm install or just yarn inside the react-app folder. This command automatically looks at the package.json file and installs the required packages into the node_modules folder.
  • You can run the app by running yarn start

Running the application-

  • Run this command inside the Hippocampus/react-app folder
             npm install
             yarn start
  • On a separate terminal instance run this in the Hippocampus/go folder
            go run CRUD.go
  • Go to localhost:3000 to use the application

Functionalities-

Homepage:

Signed out

Logged in

Users list

Genres

Quizzes under a genre

Leaderboard under a genre

Quiz section

Create a quiz (admin)

Create a new question (admin)

Delete a user (admin)

About

HIPPOCAMPUS - A quiz application with React.js,Bootstrap for frontend, Golang for backend- gin and gorm libraries.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published