Rebook is a website allowing students to resell school books to each other.
./setup
docker compose up -d
In local the project is accessible in http://0.0.0.0:8000 and the admin panel is accessible in http://0.0.0.0:8000/admin
docker compose exec rebook python manage.py test
docker compose exec rebook python manage.py migrate
docker compose exec rebook python manage.py makemigrations
docker compose exec rebook python manage.py createsuperuser
poetry install
poetry run pre-commit run -a
For install pre-commit in your local repository
poetry run pre-commit install
setup
script generate a docker compose for developpement purpose. It takes as input the standard docker-compose.yml
(same as used in production) and docker-compose-dev-override
.
It generates a final docker-compose.yml
to be used easily in your on environment.
To modify something inside docker-compose, use the source file and re-run ./setup.sh
script.
All environment variables are generated from deploy/env
in the docker-compose.yml
file by the script ./setup.sh
Format of branch name :
<type>/<name of branch>
Availables type :
feat
Add a featurefix
Fix a bugclean
Clean the codebaserefactor
Refactor the codebase
Format of commit messages :
<type>(<scope>): <subject of commit>
Availables type :
feat
Add a featurefix
Fix a bugclean
Clean the codebaseci
Change a file or add feature in link with the deployment of the application (Jenkins, Travis, Ansible, gitlabCI, npm, grunt, gulp, webpack, etc.)docs
Add documentation (README, JSdoc, comments, etc.)refactor
Change codebase without add feature or fix bugtest
Add test
Execute this command if they are some error with files access, because the docker container is running with root user
sudo chown $USER -R rebook/