kapmahc / h2o

A complete open source e-commerce solution.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

H2O

A complete open source e-commerce solution.

Usage

go get -u github.com/kardianos/govendor
go get -d -u github.com/kapmahc/h2o
cd $GOPATH/src/github.com/kapmahc/h2o
govendor sync
npm install
cd ant-design-pro-master && npm install
make

Atom plugins

enable autosave

  • go-plus
  • file-icons
  • atom-beautify(enable newline, beautify on save; need python-sqlparse)
  • language-babel
  • language-ini

Notes

  • Generate a random key

    openssl rand -base64 32
    
  • ~/.npmrc

    prefix=${HOME}/.npm-packages
    
  • 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

About

A complete open source e-commerce solution.

License:MIT License


Languages

Language:Go 49.1%Language:JavaScript 44.5%Language:HTML 5.6%Language:Shell 0.5%Language:Makefile 0.2%Language:CSS 0.0%