https://github.com/davidli218/london-econ-today-api
Backend for London Economics Today
https://github.com/davidli218/london-econ-today-api
flask restfull-api
Last synced: about 2 months ago
JSON representation
Backend for London Economics Today
- Host: GitHub
- URL: https://github.com/davidli218/london-econ-today-api
- Owner: davidli218
- Created: 2024-06-29T13:37:41.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-03T17:19:23.000Z (almost 2 years ago)
- Last Synced: 2024-12-30T22:28:31.180Z (over 1 year ago)
- Topics: flask, restfull-api
- Language: Python
- Homepage:
- Size: 82 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
London Economic Today API
## Getting Started
1. Create a virtual environment & install dependencies
```
conda create -n london_eco_today python=3.12
conda activate london_eco_today
pip install -r requirements.txt
```
2. Run the **development server**
```
flask --app app run
```
3. Access the testing API: http://127.0.0.1:5000/api/v1/hello
## Deploying to Production
### Docker
```
docker run -d -p 8000:8000 --name london_eco_today_api --restart=always teiiri/london_eco_today_api:latest
```
### Docker Compose
```yaml
services:
london_eco_today_api:
container_name: london_eco_today_api
image: teiiri/london_eco_today_api:latest
restart: always
ports:
- "8000:8000"
```