An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

London Economic Today API





Python 3.12
Flask
Gunicorn


## 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"
```