Skip to content

giga-controller/expand-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Expand

Install Poetry

We use Poetry for dependency management.

# Install Poetry
curl -sSL https://install.python-poetry.org | python3 -

Or follow installation instructions from Poetry website.

Setup Virtual Environment

It is recommended to use Python virtual environment, so you don't pollute your system Python environment.

# Install dependencies
poetry install
# Update/upgrade dependencies
poetry update
# Activate Python virtual environment
poetry shell

Environment Variables

Copy an existing environment template file and fill in all the necessary values:

# Create .env file (by copying from .env.example)
cp .env.example .env

Start the server (locally)

uvicorn app.main:app --reload --host 0.0.0.0 --port 8080

Start the server (on ec2)

uvicorn app.main:app --reload --host 0.0.0.0 --port 8080 --ssl-keyfile ~/backend/privkey.pem --ssl-certfile ~/backend/fullchain.pem

Check style

Run the following command at the root of the repository black .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages