@@ -21,13 +21,13 @@ Features:
2121
2222_ uses Python3.6+, Docker, and Docker-compose_
2323
24- 1 . Create a virtual environment for dependencies with ` python3 -m venv .venv/ ` . Activate it with ` source .venv/bin/activate `
25- 2 . Dependencies are managed with [ Poetry] ( https://python-poetry.org ) . Install dependencies with ` poetry install `
26- 3 . Run ` pre-commit install ` to configure git commit hooks (for ` flake8 ` checking and ` black ` formatting)
27- 4 . Copy ` default.env ` to a new file ` .env `
24+ 1 . Create a virtual environment for dependencies with ` python3 -m venv .venv/ ` . Activate it with ` source .venv/bin/activate ` .
25+ 2 . Dependencies are managed with [ Poetry] ( https://python-poetry.org ) . Install dependencies with ` poetry install ` .
26+ 3 . Run ` pre-commit install ` to configure git commit hooks (for ` flake8 ` checking and ` black ` formatting).
27+ 4 . Copy ` default.env ` to a new file ` .env ` .
28285 . Run ` docker-compose up -d database ` to run a local PostgreSQL instance for testing and development.
29- 6 . Run test suite with ` pytest ` _ (also initializes database) _ .
30- 7 . Run the application with ` python3 app/main.py `
29+ 6 . Initialize the database with ` python3 app/utils/init_db.py ` .
30+ 7 . Run the application with ` python3 app/main.py ` .
3131
3232View documentation at ` http://localhost:8000/docs `
3333
@@ -39,6 +39,9 @@ View documentation at `http://localhost:8000/docs`
39394 . Build the project with ` docker build -t microauth . `
40405 . Run with ` docker run -p 8000:8000 -d microauth `
4141
42+ ### Tests
43+
44+ Run test suite with ` pytest --cov=app tests/ ` .
4245
4346
4447### Email Resets (Optional)
0 commit comments