Backend REST API With Django
Backend REST API With Django
App design
1. We write our functionality first and then write the unit tests for it
2. We write the tests first and then write the functionality. This is the
recommended method
TDD Process:
Project Setup
1. Consistency in the local machine and the server you deploy in as you
use the same code in both using docker. So there will be no errors
that you are getting in your production and cannot reproduce in your
local machine.
1. For cleanup, just del the docker image file or where you have
installed the dependencies using docker
Docker Use:
First we will define the dockerfile, This file will contain all the operating system
level dependencies our project needs.
Then we will create Docker compose Configurations. This tells how to run the
images that are created from our Docker File configuration
Access token → Used to authenticate git project with docker hub account.
This could be seen as the alternative to passwords. This token are added to
git repo, that gives it access to log into the docker hub account.
To disconnect the access, you can just delete the token