Install
yarn
:npm install --global yarn
- Install packages -
yarn install
- Run dev server -
vercel dev
(default port is5173
)- Running
vercel dev
is required to run the serverless functions locally.
- Running
Run
pre-commit run -a
when runningpre-commit
hooks for the first time.
For instructions on how to run the server, see server/README.md.
-
Option 1: Poetry:
To use multiple versions of Python, you can use
pyenv
: 3.10.6 is an example for our use-case.-
Install
pyenv
usingbrew
. -
pyenv install 3.10.6
. -
Launch shell -
pyenv shell 3.10.6
.Install Poetry: [Read more here](https://python-poetry.org/docs/) 1. `poetry config virtualenvs.in-project true` 2. `poetry self update` to update to the latest version of Poetry. 3. If you used, `pyenv shell`, you can now run `poetry env use python3.10.6`. 4. `poetry install` to install all dependencies. 5. `poetry export --without-hashes --format=requirements.txt > requirements.txt` to export the requirements without hashes.
-
-
Option 2: Docker:
- Docker is cool, however, I'd recommend not launching a resource-heavy container every time you want to run a development server. 1. Install Docker: Read more here 2.
docker-compose build
to build the Docker image. 3.docker-compose up
to start the server.
- Docker is cool, however, I'd recommend not launching a resource-heavy container every time you want to run a development server. 1. Install Docker: Read more here 2.
-
Make sure to use the pre-commit hook
- Installation - Read more here
pre-commit install
to install the pre-commit hooks.pre-commit run -a
to run the pre-commit hooks.