API for license plates image processing.
Note: Use a 64-bit x84 computer.
- Download and install docker from https://www.docker.com/
-
Install docker: https://docs.docker.com/engine/install/debian/
-
Run
sudo usermod -aG docker $USER -
Start services on boot:
sudo systemctl enable docker.service sudo systemctl enable containerd.service
-
Create file
/etc/docker/daemon.jsonwith content:{ "log-driver": "local" } -
Reboot with
sudo reboot
- Download the
compose.yamlfile. - Run
docker compose upordocker compose up -din the folder where you saved the file.- Tip: You can use
--buildto force build locally if you cloned the whole project.
- Tip: You can use
- Use examples in
insomnia_exportsto familiarize yourself, or go to http://localhost/docs
-
Install Docker using the above quickstart guide.
-
Install VS Code.
-
Install "Dev Containers" extension.
-
Open the project using devcontainer.
-
Start the server.
# Start on port 8000 bash scripts/start-server.sh# Start on port 80 sudo su fastapi run fastapi_app/main.py --port 80Alternative non-root: https://www.geeksforgeeks.org/bind-port-number-less-1024-non-root-access/
pip freeze > requirements.txt
sed -i 's/==/>=/g' requirements.txt
pip install -r requirements.txt --upgrade