To install the dependencies for this project, you will need to have Poetry installed. You can install Poetry by running the following command:
curl -sSL https://install.python-poetry.org | python3 -
To install the dependencies for this project, run the following command:
poetry install
To activate the virtual environment created by Poetry, run the following command:
poetry shell
- Run the command to create the
venv
folder inside the project
poetry config virtualenvs.in-project true
- Install Docker Desktop from the Docker website.
- Clone this repository:
git clone [email protected]:Sifchain/stf-nomic-game.git
- Navigate to the repository folder and install:
make init
- This project uses a .env file for configuration. To set up your own environment, copy the .env.example file to .env and update the values to match your local setup.
cp .env.example .env
- Navigate to the dev branch with the following command:
git checkout master
- Load environment variables
source .env
- Start the database container
make start-db
- Migrate the database
make migrate-db
To start the API server, run the following command:
python -m nomic.main
To test the API, you can open the swagger UI: