Dev environement installation
- https://github.com/TiBillet/Lespass
- https://github.com/TiBillet/Fedow
- https://github.com/TiBillet/LaBoutik
- https://github.com/TiBillet/Test-Driven-Development
git clone [email protected]:TiBillet/Test-Driven-Development.git
git clone [email protected]:TiBillet/Lespass.git
git clone [email protected]:TiBillet/LaBoutik.git
git clone [email protected]:TiBillet/Fedow.git
cp env_example .env
docker compose up -d
docker compose logs -f # to see the logs
Enter on each django container to start the dev server exemple with Fedow :
# on host :
docker exec -ti fedow_django bash
# inside the containe :
poetry shell # enter the python venv
./flush.sh # to start from scratch with demo/test data
# or
rsp # alias for python manage.py runserver 0.0.0.0:8000, to start the server if you don't want to flush
You have to do the same with : lespass_django
and laboutik_django
docker network create frontend
exemple: ROOT_PATH="/media/travail/developpement/gits/Test-Driven-Development/"
tmux kill-server
docker compose up -d && docker compose down
./start_dev
This is the end to end test, with a headless chrome :
# in playwright container
docker exec -ti playwright bash
npm i
clear && npx playwright test tests/laboutik/
# think install the requested dependencies and restart the previus command
- Ctrl + c
- tmux kill-server
- ./start_dev
docker system prune -a
- Relancer l'étape Test
Flush the 3 container and run ./manage.py test
on the laboutik_django
container