sqlfmt-web
The code behind sqlfmt.com, a web UI for sqlfmt.
This project uses pywebio, which makes it very simple.
It is deployed on Heroku.
Running locally
Using Heroku (recommended)
- Install Python and poetry
- Install the Heroku CLI:
brew install heroku/brew/heroku
- Install dependencies into a venv with
poetry install
- Launch the application:
poetry run heroku local web
- Open a browser and visit
http://localhost:5000
. Voila
Using Poetry
- Install Python and poetry
- Install dependencies into a venv with
poetry install
- Start the server with
poetry run sqlfmt-web
- Open a browser and visit
http://localhost:5000
. Voila
Deploying
- Create a new branch, make commits to that branch
- Open a PR to main
- When the PR to main is merged, Heroku will automatically deploy the new code to prod