Skip to content

jinyang628/whale-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend

The backend infrastructure for Whale

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

Create chat-based CRUD apps in less than a minute

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages