Giter Club home page Giter Club logo

phoenix-flower's Introduction

phoenix-flower

introduction

A hacker news like web app built up by using Python Web Framework Flask, SQLAlchemy, Mysql/SQLite, Cron etc technologies.

Wanna see a Demo of this project?

sorry, not at this moment. will release soon when web server is ready.

How to deploy on my own env?

recommend to install this app on your LEMP server.

  1. mysql php nginx install: https://www.digitalocean.com/community/articles/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-12-04

  2. phpmyadmin nginx https://www.digitalocean.com/community/articles/how-to-install-phpmyadmin-on-a-lemp-server/

  3. install pip

sudo apt-get install python-pip
  1. install virtualenv
pip install virtualenv
  1. create the virtualenv for phoenixflower
virtualenv phoenixflower
  1. active your virtual env by
source phoenixflower/bin/activate
  1. install dev env in order to make the mysql dev installation smoothly
 sudo apt-get install libmysqlclient-dev python-dev
  1. install the requirements for this app
sudo apt-get install git
git clone https://github.com/catsky/phoenix-flower.git
cd phoenix-flower
pip install -r requirements.txt
  1. rename config.back.py to config.py, and fullfill the info according to your settings.

  2. create a db called "phoenixflower" using phpmyadmin or something else

  3. start this app by running

python index.py
  1. access this app via http://localhost:5000
    ENJOY! :)

*13. OR DEPLOY ON THE PRODUCTION ENV recommend to use nginx and uwsgi, follow the instruction below

https://www.digitalocean.com/community/articles/how-to-setup-uwsgi-on-ubuntu-12-10 https://gist.github.com/mplewis/6076082

 uwsgi --socket 127.0.0.1:3031 --module index  --callable app --virtualenv /root/phoenixflower/ --daemonize=/var/log/uwsgi/phoenixflower.log

##License MIT

phoenix-flower's People

Contributors

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