Client
Database
- Feature 1.
- Feature 2.
- Feature 3.
Color | Hex |
---|---|
Primary Color | #222831 |
Secondary Color | #393E46 |
Accent Color | #00ADB5 |
Text Color | #EEEEEE |
To run this project, you will need to add the following environment variables to
your .env
file:
-
App configs:
TEST_VAR
: Description of this environment variable.
E.g:
# .env
TEST_VAR="my secret key"
You can also check out the file .env.example
to see all required environment
variables.
-
Python:
>= 3.11
. -
This project uses Poetry as package manager:
Linux, macOS, Windows (WSL)
curl -sSL https://install.python-poetry.org | python3 -
Read more about installation on Poetry documentation.
Clone the project:
git clone https://github.com/DuckyMomo20012/python-template.git
Go to the project directory:
cd python-template
Install dependencies:
poetry install
pre-commit install
OR:
Install dependencies with pip
:
pip install -r requirements.txt
pre-commit install
Export dependencies from pyproject.toml
Export Poetry dependencies to file requirements.txt
:
poetry export -f requirements.txt --output requirements.txt
Note: You can add option:
--dev
to include development dependencies.
Activate the virtual environment:
poetry shell
Start the program:
poe dev
To run tests, run the following command:
poe test
To deploy this project run:
poe deploy
Use this space to tell a little more about your project and how it can be used. Show additional screenshots, code samples, demos, or links to other resources.
from environs import Env
env = Env()
# Read .env into os.environ
env.read_env()
print("Hello World")
TEST_VAR = env.str("TEST_VAR")
print(f"My secret key: {TEST_VAR}")
- Todo 1.
- Todo 2.
Contributions are always welcome!
Please read the Code of Conduct.
-
Question 1
- Answer 1.
-
Question 2
- Answer 2.
Distributed under MIT license. See LICENSE for more information.
Duong Vinh - @duckymomo20012 - [email protected]
Project Link: https://github.com/DuckyMomo20012/python-template.
Here are useful resources and libraries that we have used in our projects:
- Awesome Readme Template: A detailed template to bootstrap your README file quickly.