You can use this project to maintain a register of versions (especially API ones) of your projects.
All the versions will be saved in a database. You will be able to get the current version of project and update the version of the project via API.
You will need in your computer Docker, docker-compose and, of course, git to run it, but, is
highly recommended having also Make
The project will run inside Docker containers, and you can see what python packages are used in the pyproject.toml file (poetry-based).
Installing SVNT is quite simple if you have Make.
Go to your project path and clone the repository:
After cloning it, go to the main path:
$ cd SemanticVersionNumberToolThen just use make command:
$ makeNow all the magic will start if you have docker and docker-compose installed, all the volumes and containers
will be created.
After the deployment, you can check if all was ok by going to http://localhost/admin/. Then, if you see the Django-admin login
page ... IT WORKS!
By default, it will create a user with the name admin and password root1234.
If it does not work you can check for problems in logs using the following command:
$ make alllogsYou can pass the test in your local environment just using the following command:
$ make testOr you can enter the docker container and be more specific
$ make sh
$ pytest core/models/tests/test_version.py::VersionTest::test_next_version_not_validIf there are more than 5 test that does not pass, you should use the next command if you want to run them all:
$ make localtest