axe

command module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2017 License: MIT Imports: 13 Imported by: 9

README

AXE

A complete open source e-commerce solution by Go and React.

Install nodejs

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | zsh
nvm install node
nvm alias default node
  • upgrade nvm

    (
    cd "$NVM_DIR"
    git fetch origin
    git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" origin`
    ) && . "$NVM_DIR/nvm.sh"
    

Install go

zsh < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
gvm install go1.9.2 -B
gvm use go1.9.2 --default
go get -u github.com/kardianos/govendor

Usage

go get -u github.com/kardianos/govendor
go get -d -u github.com:kapmahc/axe
$GOPATH/src/github.com/kapmahc/axe
govendor sync
npm install
cd dashboard && npm install
make

Atom plugins

  • go-plus
  • git-plus
  • file-icons
  • atom-beautify
  • language-babel

Notes

  • Create database
psql -U postgres
CREATE DATABASE db-name WITH ENCODING = 'UTF8';
CREATE USER user-name WITH PASSWORD 'change-me';
GRANT ALL PRIVILEGES ON DATABASE db-name TO user-name;
  • ueditor

    cd node_modules/ueditor
    npm install grunt-cli -g
    npm install
    grunt
    
  • Chrome browser: F12 => Console settings => Log XMLHTTPRequests

  • Rabbitmq Management Plugin(http://localhost:15612)

    rabbitmq-plugins enable rabbitmq_management
    rabbitmqctl change_password guest change-me
    rabbitmqctl add_user who-am-i change-me
    rabbitmqctl set_user_tags who-am-i administrator
    rabbitmqctl list_vhosts
    rabbitmqctl add_vhost v-host
    rabbitmqctl set_permissions -p v-host who-am-i ".*" ".*" ".*"
    
  • "RPC failed; HTTP 301 curl 22 The requested URL returned error: 301"

    git config --global http.https://gopkg.in.followRedirects true
    
  • 'Peer authentication failed for user', open file "/etc/postgresql/9.5/main/pg_hba.conf" change line:

    local   all             all                                     peer  
    TO:
    local   all             all                                     md5
    
  • Generate openssl certs

    openssl genrsa -out www.change-me.com.key 2048
    openssl req -new -x509 -key www.change-me.com.key -out www.change-me.com.crt -days 3650 # Common Name:*.change-me.com
    

Documents

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
db
plugins
erp
nut
pos

Jump to

Keyboard shortcuts

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