Internal Assets Tracking System for Maintain different Components.
- Go 1.6
- Glide - Package manager for Go
- PostgreSQL 9.4.4+
- npm
docker-compose up -d
docker run -d -it -v /Users/ashwin/cantaloupe/src/github.com/improwised/cantaloupe/postgres_data:/var/lib/postgresql/data -e POSTGRES_PASSWORD=123123 -e POSTGRES_USER=postgres -e POSTGRES_DB=cantaloupe -p 5432:5432 postgres:9.6-alpine
- Setup go workspace by following this Guide
- Set Go vendor flag. Add the following to your
.bashrc
or.zshrc
along with$GOPATH
above
export GO15VENDOREXPERIMENT=1
- Install dependencies
$ glide install
- Create Database
$ create database cantaloupe
- Database Migration
$ go run ./db/migration.go
- Run project from cantaloupe
$ go run main.go
- access system on port 8000
To make necessary directories.
$ make makedir
To download all dependencies.
$ make get
To build the project and generate executable file.
$ make build
To run the project.
$ make run
To test the project.
$ make test
To delete project dependencies and executable files.
$ make clean
To make diractories, download dependencies, generating executable and then run the project.
$ make all
- Create database
cantaloupe
. - Run migrations script from db directory
go run migrations.go
. - Execute
docker-compose up
from root.
-
Switch to front-end directory.
-
Run following commands to download dependencies.
$ npm init
$ npm install
-
Start server by $ npm start
-
Access system on port 8080
TODO: How to run tests
Run following command from cantaloupe
GO_ENV2=testing go test
Copyright 2016 Improwised Technologies Pvt Ltd www.improwised.com
This work is the sole property of Improwised Technologies Pvt Ltd brand you may not use this work except in compliance with the License.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.