Run locally
Backend
If you want to run Spade locally for development or testing purposes, you can do so by following the instructions below.
- Clone the Spade repo (https://github.com/crugroup/spade)
- Install the required dependencies by running
pip install -r requirements/local.txt
- Start the required services by running
docker-compose -f local.yml up -d postgres
- Set the environment variables required for Django:
export DJANGO_READ_DOT_ENV_FILE=True
export DJANGO_ENV_FILE=.envs/.local/.local
- Run the migration by running
python manage.py migrate
- Start the server by running
python manage.py runserver
This will bring up the Spade backend server on your local machine. You can access the server by visiting http://localhost:8000
in your browser.
Frontend
To run the frontend locally:
- Clone the Spade UI repo https://github.com/crugroup/spadeui)
- Install the required dependencies by running
yarn install
- Start the server by running
yarn start
This will bring up the Spade frontend server on your local machine. You can access the server by visiting http://localhost:5173
in your browser.