mkdir -p romm_mock/library/roms/switch
touch romm_mock/library/roms/switch/metroid.xci
mkdir -p romm_mock/resources
mkdir -p romm_mock/assets
mkdir -p romm_mock/config
touch romm_mock/config.yml
cp env.template .env
# https://mariadb.com/docs/skysql-previous-release/connect/programming-languages/c/install/#Installation_via_Package_Repository_(Linux):
sudo apt install libmariadb3 libmariadb-dev pipx
You'll need poetry installed
https://python-poetry.org/docs/#installing-with-the-official-installer
WARNING: Until poetry 1.8.0 version is released, poetry needs to be installed with the new non-package-mode feature branch:
pipx install --suffix _npm git+https://github.com/radoering/poetry.git@non-package-mode
More info: python-poetry/poetry#8650
Then create the virtual environment
# Fix disable parallel installation stuck: $> poetry_npm config experimental.new-installer false
# Fix Loading macOS/linux stuck: $> export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
poetry_npm install --sync
docker-compose up -d
*Migrations will be run automatically when running the backend.
cd backend
poetry_npm run python3 main.py
cd backend
poetry_npm run python3 worker.py
cd frontend
# npm version >= 9 needed
npm install
mkdir assets/romm
ln -s ../backend/romm_mock/resources assets/romm/resources
ln -s ../backend/romm_mock/assets assets/romm/assets
npm run dev
docker exec -i mariadb mariadb -u root -p<root password> < backend/romm_test/setup.sql
*Migrations will be run automatically when running the tests.
cd backend
# path or test file can be passed as argument to test only a subset
poetry_npm run pytest [path/file]