Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xadrianzetx/fullstack.ai
https://github.com/xadrianzetx/fullstack.ai
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/xadrianzetx/fullstack.ai
- Owner: xadrianzetx
- Archived: true
- Created: 2019-07-06T19:02:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T11:16:59.000Z (almost 2 years ago)
- Last Synced: 2024-07-31T21:55:30.995Z (3 months ago)
- Language: Python
- Homepage:
- Size: 6.6 MB
- Stars: 762
- Watchers: 13
- Forks: 49
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.](https://docs.mapbox.com/help/how-mapbox-works/access-tokens/) 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"```