Code Monkey home page Code Monkey logo

sce_vta's Introduction

SCE VTA App

Overview

The SCE VTA App is a real-time transit prediction application using the 511 API. It provides up-to-date predictions for the Valley Transportation Authority (VTA) services. This tool is useful for those who frequently use VTA services.

Getting Started

Prerequisites

Installation

  1. Clone the Repository
    Begin by cloning the repository to your local machine:

    git clone https://github.com/ahmadgaz/sce_vta
  2. Request 511 API Key
    Request a 511 API key from 511.org

  3. Configuration
    Create a config.yml file in the root directory of the project. Use config.example.yml as a template. Replace the api_key value with your 511 API key.

  4. Set Up a Python Virtual Environment
    Initialize a virtual environment in the root directory of the project:

    ```sh
    python -m venv env
    ```
    

    Activate the virtual environment:

    - Windows Powershell:
    
    ```sh
     env\Scripts\activate.ps1
    ```
    
    - MacOS/Linux Bash:
    
    ```sh
    source sce-venv/bin/activate
    ```
    
  5. Run the Application
    Run the application using docker-compose:

    - Docker:
    
    ```sh
    docker-compose up --build
    ```
    

    Alternatively, run the application without caching or prometheus using python:

    - Python:
    
    ```sh
    python api/app.py
    ```
    
  6. View the Application
    The application will be running on localhost/predictions by default.

sce_vta's People

Contributors

ahmadgaz avatar

Watchers

 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.