HIPPOCAMPUS - A quiz application with React.js,Bootstrap for frontend, Golang for backend- gin and gorm libraries.
- 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
- 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 justyarn
inside thereact-app
folder. This command automatically looks at thepackage.json
file and installs the required packages into thenode_modules
folder. - You can run the app by running
yarn start
- 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