golang-erp

command module
v0.0.0-...-8df60ae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2018 License: MIT Imports: 5 Imported by: 0

README

Golang ERP

Installing
go get -v github.com/tools/godep
go get -v github.com/gin-gonic/gin
go get -v github.com/jinzhu/gorm
go get -v github.com/json-iterator/go
go get -v github.com/lib/pq
go get -v github.com/inconshreveable/log15
go get -v github.com/kardianos/govendor
go get -v golang.org/x/crypto/bcrypt
go get -v github.com/pilu/fresh
go get -v github.com/Masterminds/glide
Glide On Windows

Modify $GOPATH\src\github.com\Masterminds\glide\path\winbug.go

Replace

cmd := exec.Command("cmd.exe", "/c", "move", o, n)

With

cmd := exec.Command("cmd.exe", "/c", "xcopy /s/y", o, n+"\\")

go get -u github.com/Masterminds/glide to build the modified file

Run
go run main.go
Test
curl -X POST \
  http://localhost:8080/v2/company/create \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "odenktools",
  "email": "odenktools86@gmail.com",
  "password": "odenktools86",
  "telephone": "0229218391",
  "code": "odk86"
}'
curl -X POST \
  http://localhost:8080/v2/company/login \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "odenktools86@gmail.com",
  "password": "odenktools86"
}'
curl -X GET \
  http://localhost:8080/v2/company

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL