Giter VIP home page Giter VIP logo

sky's Introduction

sky

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

Install nvm

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

Install gvm

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

Usage

go get github.com/kapmahc/sky
cd $GOPATH/src/github.com/kapmahc/sky
cd desktop && npm install

Devleopment

cd $GOPATH/src/github.com/kapmahc/sky
go run main.go g c # generate config.toml
./run.sh # start backend server
cd dashboard && npm start # start frontend server

will listen at http://localhost:3000

Deployment

cd $GOPATH/src/github.com/kapmahc/sky
make
ls dist.tar.bz2

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 && ./sky seo
  • For gmail smtp

Atom plugins

  • go-plus
  • git-plus
  • file-icons
  • linter
  • editorconfig

Documents

sky's People

Contributors

chonglou avatar

Stargazers

Moore avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.