https://github.com/xyzjonas/applifting-demo
https://github.com/xyzjonas/applifting-demo
auth aws demo-app docker docker-compose fastapi poetry
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/xyzjonas/applifting-demo
- Owner: xyzjonas
- License: mit
- Created: 2023-07-27T14:56:00.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-10T11:48:57.000Z (almost 3 years ago)
- Last Synced: 2025-04-06T03:44:43.237Z (about 1 year ago)
- Topics: auth, aws, demo-app, docker, docker-compose, fastapi, poetry
- Language: Python
- Homepage:
- Size: 14.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Aggregator microservice
A simple FastAPI microservice API.
* **aggregator_api** - the API application itself
* **aggregator_connector** - the client connector for the remote service (register, query offers)
* **aggregator_watcher** - background task watching & updating products' offers
## Installation
#### 1) Local
```shell
poetry install
```
...afterwards:
```shell
# start the API server as a Python process using Uvicorn
applifting-demo
```
```shell
# start the watcher process - looping indefinitely
applifting-watcher
```
...and don't forget to set up these environment variables:
```shell
export ACCESS_TOKEN=
export DATABASE_URI=
export CLOUD_URI=
```
#### 2) Docker & Compose
Run individual images/services
```shell
# 1) API
docker run -it --rm --entrypoint applifting-demo scotch3840/misc:applifting-demo
# 2) Watcher
docker run -it --rm --entrypoint applifting-watcher scotch3840/misc:applifting-demo
```
...or use attached compose file.
```shell
docker compose up -d
```
```shell
# ACCESS_TOKEN is the only required variable
export ACCESS_TOKEN=
```