https://github.com/nozeren/duobudget-db
Automatically Generate Database and populates with initial data for the DuoBudget
https://github.com/nozeren/duobudget-db
asyncpg pandas postgresql python
Last synced: about 2 months ago
JSON representation
Automatically Generate Database and populates with initial data for the DuoBudget
- Host: GitHub
- URL: https://github.com/nozeren/duobudget-db
- Owner: Nozeren
- License: mit
- Created: 2025-02-12T13:57:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-06T16:29:52.000Z (about 1 year ago)
- Last Synced: 2025-05-06T17:40:57.445Z (about 1 year ago)
- Topics: asyncpg, pandas, postgresql, python
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DuoBudget-DB
Automatically Generate Database and populates with initial data for the [DuoBudget](https://github.com/Nozeren/DuoBudget)
# Requirements
PostgreSQL connection or installed on your local machine.
### Postgresql & PGAdmin4 with docker-compose
`sudo systemctl start docker.service`
Change credentials on docker-compose.yml and run:
`docker-compose up -d`
Open pgadmin4: http://localhost:8888/browser/.
Click on add server and add the DB credentials.
# Install
Create virtual environment:
`python -m venv /path/to/new/virtual/environment`
Activate virtual environment:
`/path/to/new/virtual/environment/Scripts/activate`
Install Requirements:
`pip install -r requirements.txt`
# Execution
Create enviroment variables for Posgresql credentials
```
PSQL_USER
PSQL_PASSWORD
PSQL_HOST
PSQL_PORT
PSQL_DB
```
Execute main.py
`python main.py`