Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dtgoitia/python-repository-pattern-example
https://github.com/dtgoitia/python-repository-pattern-example
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dtgoitia/python-repository-pattern-example
- Owner: dtgoitia
- Created: 2021-03-18T18:03:17.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-31T16:59:26.000Z (almost 4 years ago)
- Last Synced: 2024-10-28T13:55:19.327Z (2 months ago)
- Language: Python
- Size: 17.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Usage
Steps to set up the project for regular usage:
```shell
python3 -m venv .venv # create Python environment
. .venv/bin/activate # activate Python environment
export DATABASE_URI="sqlite:///my_db.db" # set environment variablesmake install # install dependencies
alembic upgrade head # apply DB migrations
```## Development
Steps to set up the project to develop it:
```shell
python3 -m venv .venv # create Python environment
. .venv/bin/activate # activate Python environment
export DATABASE_URI="sqlite:///my_db.db" # set environment variables
export DEBUG="true"make dev-install # install development dependencies
alembic upgrade head # apply DB migrations
```