zlp_backend
Back-end (API) for Zalupa.Online
zlp_backend est un projet open source de Yaroslav Koval, écrit principalement en Python. Dernière mise à jour : 14 sept. 2022. Le code source est sur GitHub.
- Python
- Mis à jour le
- Étoiles
- 0
git clone https://github.com/koval01/zlp_backend.gitREADME
Le README est affiché dans sa langue d’origine.
zlp_backend
Back-end (API) for Zalupa.Online
Start-Up
First, you need to clone the repository with the source code of the project.
git clone https://github.com/koval01/zlp_backend.git
Next, go to the created directory, and create an .env file
cd zlp_backend && nano .env
Specify environment variables in it
RE_SECRET = "Google ReCaptcha secret key"
SECRET_KEY_DONATE = "easydonate.ru shop key"
Next, you need to compile the Docker image
docker build -t zlp_backend .
After successful assembly, create a container and deploy the application in it.
docker run -d --name container_zlp -p 5000:5000 zlp_backend
Next, you need to direct your proxy server to this application
proxy_pass http://127.0.0.1:5000;
Additional
To view the list of containers use
docker ps
To view all containers
docker ps -a
To view container logs use
docker logs CONTAINER_ID
To kill the container
docker kill CONTAINER_ID
To remove the container by name
docker rm NAME_CONTAINER