This instructions are available only for Linux or Mac OSX
- For installation, you must follow the instructions from Golang Web Page.
- Make a source code directory on your home:
mkdir -p $HOME/golang
- Set environment variables in your .bashrc file:
echo "export GOROOT=\"$(which go)\"" >> ~/.bashrc && echo "export GOPATH=\"\$HOME/golang\"" >> ~/.bashrc && echo "export PATH=\"\$PATH:\$GOROOT/bin:\$GOPATH/bin\"" >> ~/.bashrc && source ~/.bashrc
- Install dep for dependency management.
- Create project directory:
mkdir -p $HOME/golang/src/github.com/pascencio
- Clone the project:
git clone https://github.com/pascencio/gotodo.git $HOME/golang/src/github.com/pascencio/gotodo
- Download dependencies (Execute this on root dir of project):
dep ensure
- Install Docker
- Run mongodb container:
docker run -it --rm -p 27017:27017 -e MONGODB_USERNAME=gtdusr -e MONGODB_PASSWORD=supersecret -e MONGODB_DATABASE=gotodo bitnami/mongodb
On the root of the project ejecute this command:
go run main.go
After that you can see this on your console:
____ __
/ __/___/ / ___
/ _// __/ _ \/ _ \
/___/\__/_//_/\___/ v3.3.5
High performance, minimalist Go web framework
https://echo.labstack.com
____________________________________O/_______
O\
⇨ http server started on [::]:8080
Then, if everything it's ok you can access to the app on this URL: http://localhost:8080/todo
- Logrus: Github Site
- Mgo (Fork created by globalsign): Github Site
- Echo: Github Site
- Viper: Github Site
- Get Stable Version
- Write Getting Started
- Include Govalidator
- Implement Docker Environment
- Implement Dependencies Injection
- Implement Unit Testing
- Implement CI using Travis
- Make a Release
- Implement Integration Test
- Create a framewok using this expirience
- Reciebe help from the community