- To run authenticantion at first you need verrify if you have docker and docker-compose in your machine.
- Use command:
docker-compose up --build
Obs: Is important verify if your docker have sudo permission to execute commands
- Watchout about docker's container, because if containers don't setup at begin of development time the application doesn't work.
- Watchout about structure of django framework and rest framework.
- If you create or modify a model remember of createi and execute migrations. To make that you need:
docker-compose exec authentication_django ash python3 manage.py makemigrations python3 manage.py migrate
- If you need new requirement add the package and the package's version at api/requirement.txt and execute build of container again.
- To start new app on application you need.
docker-compose exec authentication_django ash python3 manage.py startapp <"name of app">
- Watchout, when you execute some command inside docker you are executing sudo commands, because of that you need execute:
sudo chmod -R 777 <"project folder">
After that you can commit your work. 7. Remember of don't commit migrations and caches. 8. The volume of docker are build inside docker's container that mean you don't have code inside container. You can code in your local machine and the changes will be inside docker.