Giter Club home page Giter Club logo

mock-dataprovider's Introduction

Mock Data Provider

A django based web service to provide music, movie, contacts and other data in JSON format.

Install

If you want to, you can setup a virtual environment for Python. This helps separating the installations made using pip from the rest of the system.

Ensure you point the virtual environment to a Python3 instance.

virtualenv p /usr/local/bin/python3 venv
source venv/bin/activate

To exit the virtual environment, simply type

deactivate

The following steps are compulsory regardless if you choose to work in a virtual environment or not.

To install prerequisites web server

pip install -r requirements.txt

Run

cd src/
./manage.py migrate
./manage.py runserver

The server is available under http://localhost:8000/

The different web-services under

http://localhost:8000/api/music/
http://localhost:8000/api/movies/
http://localhost:8000/api/contacts/
http://localhost:8000/api/photos/

To Scan for Data

The media data must reside in ~/media

~/media/music
~/media/movies
~/media/photos

To scan for media use:

./manage.py scanmovies
./manage.py scanmusic
./manage.py scancontacts
./manage.py scanphotos

or use the help for manage.py

./manage.py help

mock-dataprovider's People

Contributors

jryannel avatar e8johan 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.