Skip to content

Latest commit

 

History

History
83 lines (64 loc) · 2.06 KB

development.md

File metadata and controls

83 lines (64 loc) · 2.06 KB

Database

For developer: view and manage AWS Aurora Database

Repo Structure (demo only)

AirSense/
├── shared/
│   ├── tests/
├── services/
│   ├── gateway/
│   │   ├── app/
│   │   │   ├── __init__.py
│   │   │   ├── routes.py
│   │   ├── run.py
│   │   ├── Dockerfile
│   │   ├── requirements.txt
│   │   └── templates/
│   │       ├── home.html
│   └── connector/
│       ├── app.py
│       ├── Dockerfile
│       ├── requirements.txt
│       └── ui/
│           ├── index.html
├── .github
├── cloudformation.yaml
├── locustfile.py
├── setup.sh
├── README.md
├── .gitignore
├── docker-compose.yml
├── requirements.txt

Docker

Attn: If develope under docker, you dont have to use any python virtual environment mentioned below, as each image has its own environment in docker engine, which is highly recommened.

docker compose build
docker compose up

Python

Attn: If you would like to test functions locally, please follow instructions below.

  • please use Python3 version 3.12.8 and usage of pyenv and virtual environment is highly recommended.

Install Python using Pyenv https://github.com/pyenv/pyenv

pyenv install 3.12.8
pyenv global 3.12.8
# restart terminal if necessary
which python3 # /home/[username]/.pyenv/shims/python3
python3 -V # Python 3.12.8
Virtual Environment
python3 -m venv venv
source venv/bin/activate
which python3 # [repo_name]/services/venv/bin/python3
Install Libraries
pip install --no-cache-dir -r requirements.txt
Run
python3 shared/tests/connect_aws_rds.py