Code Monkey home page Code Monkey logo

cloudservice's Introduction

CloudService (Team SocialPig)

· Language(s): Front end is HTML + Backend is Python

· Frameworks: Flask

· Development and production web server: Flask build-in. NGINX

· Testing frameworks: unittest module built in to the Python standard library.

· Persistent Storage: mySQL

· Caching: Redis

· API technology: REST

Set up clearDB (MySQL database) on Heroku

brew install heroku/brew/heroku

heroku login

heroku create

heroku addons:create cleardb:ignite -a quiet-inlet-97604

heroku config -a quiet-inlet-97604 | grep CLEARDB_DATABASE_URL

pip install PyMySQL


testing database:

heroku addons:create cleardb:ignite -a fast-reaches-11674

heroku config -a fast-reaches-11674 | grep CLEARDB_DATABASE_URL

Command Line for running:

Flask activate the vitual environment: python3 -m venv venv

. venv/bin/activate

pip install -e .

(outside of the project folder)

export FLASK_APP=groupnest

export FLASK_ENV=development

export DATABASE_URL=mysql://b4fda20e6f61ef:[email protected]/heroku_46f4b90a3346330

export TEST_DATABASE_URL=mysql://b51ab60be50de0:[email protected]/heroku_36faaceaabbea7e

flask init-db

flask run

git pull origin yangsun

Add gitignore

terminal在根目录下

touch .gitignore

打开.gitignore输入*.pyc

如果已经出现了pyc,就在terminal根目录下输入find . -name "*.pyc" -exec git rm -f "{}" ;

Github clone and push:

git clone https://github.com/flashyang/CloudService.git git clone -b yangsun https://github.com/flashyang/CloudService

cd CloudService

git add -A

git commit -m "something"

git push -u 或者

git push -u origin master

TODO:

  1. Google login - Stan
  2. Jenkins pipeline - yang sun
  3. Database - Qian
  4. Cache - Can
  5. Deploy NGix + WSGI – Yang Li

cloudservice's People

Contributors

stan95 avatar brilliantjc avatar flashyang avatar qwang3q avatar ysunag avatar

Watchers

James Cloos 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.