You should intalled Docker/Docker Desktop first. If you install the docker extension in your VScode, things would be easier.
- clone/pull the repo to a local address
- If you have docker extension in your VScode:
- open the file
docker-compose.yml - click
Run Serviceof the db service first, wait for several seconds, then clickRun Serviceof the django service.
- If you don't have docker extension in your VScode:
- input
docker-compose up -d dbin your terminal first and wait for the message of the start of the Container dw_db, then inputdocker-compose up -d djangoin your terminal.
- After tests, please don't forget to shut down the services by inputing command
docker-compose down -vin your terminal. This command will deletec everything including all the data in the databases. Or you could just inputdocker-compose downto just shut shwon the docker without deleting anything.
If there is no error, you should see a composed container called django in your Docker Desktop. Just click the ports of the container dw_django, the local web should open directly.