Giter Site home page Giter Site logo

simple-data-collection-server's Introduction

Simple data-collecting python server

A simple python server that can:

  • serve an html page
  • collect data that is PUT to the address /data and save locally or to an s3 bucket
  • keep a simple counter

Can be deployed to Heroku.

Setup

To save data in local files, set the var SAVE_LOCALLY in server/server.py to True; to save to S3, set the var to False.

If you want to use with S3, you must set the env vars in server/example_config.sh, locally and/or in the heroku remote.

Include whatever ui code you want in the ui folder; include index.hmtl as the root.

To run locally: python3 server/server.py [port num] or ./run.sh

Modified from: https://gist.github.com/bradmontgomery/2219997

simple-data-collection-server's People

Contributors

a-newman avatar

Watchers

James Cloos avatar  avatar

Forkers

diviz-mit

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.