Coder Social home page Coder Social logo

prim's Introduction

#Proposed structure of the project:

PRIM/
-----api/
-----data/
----------processed/
---------------20151017/
----------raw/
---------------20151017/
requirement.txt
serer.py

####DESCRIPTION: api/ everything relates to api services.

data/ store data files

data/processed/ store processed files in seperate folders, folder name is in format: YYYYMMDD

data/raw/ store raw data files, directly downloaded from Meteo France, in seperate folders, folder name is in format: YYYYMMDD

#API: Use Flask framework ##How to run the code ####Install tools and libraries You need to install pip, python, git, npm

sudo apt-get install python-pip python-dev npm

Enter the directory of the project, and continue to: Install all the necessary Python libraries:

pip install -r requirements.txt

Run the API server and static server

Run the API server:

python server.py

Then go to localhost to use the website !

####Tool to play with ReST services Install the useful tool httpie from https://github.com/jakubroztocil/httpie Exemple:

http GET 127.0.0.1:5000/wind/speed/point/38/-8/"2015-10-17 18:00:00"/"2015-10-17 19:00:00"

NOTE: the ReST services might return an errof if it is requested using the address bar from web browser

####To run the script for processing data

./script.sh date_du_run

Ex: ./script.sh 2015-12-28 Note: for the moment, the data is stored at the same level with this script ###For more details on API services, please read the Wiki

prim's People

Contributors

hxuanhung avatar

Watchers

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