Instalation:
- Make sure Go already installed in your machine and setup your Go Workspace
- Install Govendor
go get github.com/kardianos/govendor
- Go to inside $GOPATH/src/. Run
git clone https://github.com/vinbyte/inventory-toko-ijah.git
- Go to inside $GOPATH/src/inventory-toko-ijah
- Run
govendor sync
to pull all package needed and wait until finish - Install gcc for compile the sqlite driver
- Install Sqlite driver :
- For Linux/Mac :
go get github.com/mattn/go-sqlite3
go install github.com/mattn/go-sqlite3
- For Windows, follow this tutorial : https://medium.com/@yaravind/go-sqlite-on-windows-f91ef2dacfe
- For Linux/Mac :
- Adjust your setting in
config/config.json
file - (optional) Install Fresh for auto restart server.
- You're ready to go. Run
fresh
orgo run main.go
- Now your application is running in your specific port in config
*Dont forget to change mode to production
in config/config.json
Depedencies :