Install
This page explain the technical aspects of the project
Technical Aspects
This application is written with the go language using iris framework and stores its data in a mongo database. So in order to run it locally, you will need to install go and mongoDB. If you want to run the application inside a container, this application provides a dockerfile, so that you will be able to build and run the image by yourself.
Prerequisites
MongoDB should run on your machine and a workspace of Golang should be defined.
Golang
Iris Golang
MongoDB
Docker (optional)
Useful links for Prerequisites
Go Installation
Iris Installation
Iris Documentation
Use cases using Iris Recipies
MongoDb Intsallation
Use of MongoDb with Golang
Install
Go to your workspace repo and clone the repository
cd voting
Install all dependencies using
go get
ordep init
run
go run app.go
Run
To run the application easily, you can use the docker-compose file with docker-compose up
PS: This is only for test purpose, customize your file for deployment
Last updated