air

command module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2017 License: MIT Imports: 13 Imported by: 0

README

air

A complete open source e-commerce solution by Go language and Vue(STILL IN DEVELOPMENT).

Install nodejs

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

Install go

zsh < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
gvm install go1.9beta1 -B
gvm use go1.9beta1 --default

Usage

go get -u github.com/kapmahc/air
cd $GOPATH/src/github.com/kapmahc/air
make init
make

Devleopment

cd $GOPATH/src/github.com/kapmahc/air
./run.sh # start backend server
cd dashboard && npm start # start frontend server

will listen at http://localhost:8080

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;

Issues

  • Chrome browser: F12 => Console settings => Log XMLHTTPRequests

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

    rabbitmq-plugins enable rabbitmq_management
    rabbitmqctl add_user test test
    rabbitmqctl set_user_tags test administrator
    rabbitmqctl set_permissions -p / test ".*" ".*" ".*"
    
  • "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
    
  • Generate sitemap.xml.gz everyday

    @daily cd /var/www/www.change-me.com && ./air seo
    
  • For gmail smtp

Atom plugins

  • go-plus
  • git-plus
  • file-icons
  • linter
  • editorconfig
  • language-javascript-jsx

Documents

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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