Giter Club home page Giter Club logo

freespoon's Introduction

Free Spoon

Build Status

A group purchase website based on WeChat.

Development Enviroment Install

Prerequisites

sudo wget -qO- https://get.docker.com/ | sh  
sudo pip install docker-compose  

Copy config files

cp docker-compose.yml.development docker-compose.yml  
cp smbkeys.template smbkeys  
cp smbusers.template smbusers  
cp sshkeys.template sshkeys  
cp sshkeys web/sshkeys

Download git repository

git clone https://github.com/cuilyGitHub/FreeSpoonUI /your/path/FreeSpoonUI  

Modify config

docker-compose.yml

web:  
  volumes:  
    - /your/path:/FreeSpoonUI  
nginx:  
  environment:  
    - DOMAINNAME=yourdomain  
db:  
  environment:  
    - MYSQL_ROOT_PASSWORD=123456  
freespoon:  
  volumes:  
    - /your/path:/FreeSpoon  
  environment:  
    ...  

Migrate data

Copy data json files to /freespoon_data
Copy media files to /freespoon_media

Run

freespoon

python manage.py migrate  
export ENV...   
mysql -hdb -uroot -p123456 -DFreeSpoon < ./views.sql  
python manage.py createsuperuser  
python manage.py runserver 0.0.0.0:80  

web

npm install  
gulp run  

Production Enviroments Install

Download project sources

git clone --recursive https://github.com/codemeow5/FreeSpoon.git  /usr/local/FreeSpoon  

Copy config files

cp docker-compose.yml.production docker-compose.yml  
cp Dockerfile.production Dockerfile  

Configuration

docker-compose.yml

db:  
  environment:  
    - MYSQL_ROOT_PASSWORD=123456  
freespoon:  
  environment:  
    ...  

Pull data

pull data files to /freespoon_data
pull media files to /freespoon_media

Run

docker-compose up  

Create Database (Optional)

create database FreeSpoon character set utf8;

Migrate Database

python manage.py makemigrations  
python manage.py migrate

Import & Export Data

python manage.py dumpdata authentication > /your/path/authentication.json  
python manage.py dumpdata -e business.purchasedproducthistory business > /your/path/business.json  
python manage.py dumpdata socialaccount > /your/path/socialaccount.json  
python manage.py loaddata /your/path/authentication.json  
python manage.py loaddata /your/path/business.json  
python manage.py loaddata /your/path/socialaccount.json  

Configuration Social App Key

Media Platform: Mozilla
App: iOS

freespoon's People

Contributors

cuilygithub 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.