Coder Social home page Coder Social logo

shallow-dives / mbta-lite-map-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 11 KB

An API supporting the the MBTA Lite Map - a Raspberry Pi powered LED map of the MBTA Red Line in Boston.

Dockerfile 5.16% Makefile 4.41% Python 90.43%
flask mbta-api raspberry-pi

mbta-lite-map-api's Introduction

MBTA Lite Map API

API supporting the MBTA Lite Map Project.

Develop workflow

The development workflow commands are aliased in the Makefile.

  1. Install development dependencies

     make devel-install
    
  2. Create and populate a .env file based on .env.template

     cp .env.template .env
    

    The USER_API_KEY is required to access any restricted endpoints in this application. A user API key can be generated with uuid-gen and then provided to the Raspberry Pi frontend node(s). Keys to access any external APIs should also be added via .env.

  3. Lint and reformat any new code

      make format          # Reformats all code
    
      make format-check    # Reports issues but doesn't auto-format
    
  4. Run tests with Pytest

      make test
    

    The pytest configuration is specified and can be updated in tests/pytest.ini.

  5. Build and run the API image

      make devel-build
    
      make devel-run
    

    This kicks off a multi-stage docker build to create a pared down final image running a Gunicorn server.

Deploy workflow

TODO

docker compose up

Resources

mbta-lite-map-api's People

Contributors

kghite 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.