- Copy
.env.example
to.env
, filling in the following required variables:
AWS_S3_BUCKET
: an S3 bucket to which you want to save revisionsAWS_ACCESS_KEY_ID
: an access key id for an AWS user that has write access to your S3 bucketAWS_SECRET_ACCESS_KEY
: a secret access key for an AWS user that has write access to your S3 bucket
I don't recommend that you change the CDN_BASE variable right now, it's needed for loading the compiler web worker and installing packages
- Choose your favorite way to load
.env
files
- I have a shell function that does it:
function dotenv () { env $(cat .env | xargs) $* }
- There are various
dotenv
programs written in different languages that you can try
-
Set up a virtual python environment and load it.
python3 -m venv ./env && . env/bin/activate
- Install Python dependencies
pip install -r requirements.txt
- Install frontend dependencies
npm install
- Run the server
dotenv flask run
- Run the client development server
dotenv npm run watch
- Open
http://localhost:5000