Coder Social home page Coder Social logo

wang_fm's Introduction

wang_fm

Refactor of miao_fm

Depends

Software

  1. Python 2.7.5
  2. mongodb 2.4.8

Python Packages

  1. Flask==0.10.1
  2. Flask-RESTful==0.2.8
  3. Flask-Script==0.6.6
  4. mongoengine==0.8.6
  5. requests==2.1.0
  6. APScheduler==2.1.1

Install

# You need to install Python, pip, virtualenv, MongoDB first.
virtualenv doufm
cd doufm
git clone https://github.com/DouFM/wang_fm
pip install -r wang_fm/requirements.txt
. bin/activate
cd wang_fm
python manager.py setup
python manager.py auto_update  # Download demo music, this needs to be stopped manually
python manager.py runserver

Test

use nose to test all.

run nosetests -vv

manager.py

usage: manager.py [-h]
                  {shell,enable_channel,update_channel_num,setup,runserver,channels,auto_update,tasks,disable_channel}
                  ...

Examples

  1. use ./manager.py setup to setup db.
  2. use ./manager.py runserver to run server. (This needs to keep running)
  3. use ./manager.py tasks [-h] hour to run tasks. (This needs to keep running)

wang_fm's People

Contributors

dongchao-cn avatar yhfyhf avatar aronlt 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.