Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

xadrianzetx/fullstack.ai

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

fullstack.ai

This repository has been archived. Please look for better examples if you want to deploy ML-driven application.

UI

API

Run

In order to deploy, you'll need to get mapbox API key here. Then in project directory run

echo MAPBOX_API_KEY=your.api.key > .env && \
docker pull nginx:latest && \
docker-compose up --build -d

Nginx configuration maps reverse proxy server to port 80

API guide

GET valid station id

curl -i "localhost:80/api/stations"

GET predicted trip time between two stations

"localhost:80/api?start=start_id&end=end_id"

Parameters

  • start_id (required) Valid start station id
  • end_id (required) Valid end station id

Example

curl -i "localhost:80/api?start=73&end=39"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks