Git Product home page Git Product logo

hplayer-django's Introduction

The backend of hplayer app, mainly focus on crawling useful data from some websites, saving them into local postgres and serving the mobile app.

Features

  • Powered by Django on EC2 and Postgres
  • Crawl the video, audio and cartoon urls, pictures and names
  • Save the crawled data to postgres for later usage
  • Provide rest form api for retrieve and query data by mobile clients

Quick Setup

1. Create virtual environment

  • Upload the project to EC2 machine
  • Install virtualenv: sudo apt-get install python-virtualenv
  • Go to the project root directory and type: virtualenv env
  • Switch to the created virtual environment: source env/bin/activate

2. Install postgres

NOTE: Your created user must be a superuser to create a database. If something doesn't work, make sure the 'HOST' in the 'DATABASES' is populated with '127.0.0.1'.

3. Install dependent libraries

  • Intall from the requirements.txt file: pip install -r requirements.txt
  • Go to django-separatedvaluesfield folder and type: python setup.py install
  • Swtich back to the project root folder and type: python manager.py makemigrations
  • Run the migrations: python manager.py migrate

4. Start the server locally

  • Start the server locally: python manager.py runserver

5. Start the server on EC2

hplayer-django's People

Contributors

bigbugbb avatar

Watchers

 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.