A basic pattern of Python's backend
To work with this project, a virtual environment is required
- Clone the repo
git clone https://github.com/diversi-tech/kostiner-tenders-back.git
- Creating a new virtual environment:
python -m venv .venv
- Activating the virtual environment:
.venv\Scripts\activate
- Install dependencies:
Make sure you have a requirements.txt file in the project, which contains all project dependencies.
Install the dependencies:
pip install -r requirements.txt
- run:
python -m flask run
- Build the Docker image:
docker build -t kostiner .
- Run the Docker container:
docker run -p 5000:5000 --env-file .env kostiner
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some Feature'
) - Push to the Branch (
git push origin feature/Feature
) - Open a Pull Request