- git clone git@github.com:elinaldosoft/gastemenos.git gastemenos
- cd gastemenos
- python3.11 -m venv venv
- source venv/bin/activate
- poetry install
- python manage.py check
- python manage.py makemigrations
- python manage.py migrate (To create the structure (schemas, tables) the database)
- git clone git@github.com:elinaldosoft/gastemenos.git gastemenos
- cd gastemenos
- python -m venv venv
- venv\Scripts\Activate.ps1
- poetry install
- venv\Scripts\Activate.ps1
- python manage.py makemigrations
- python manage.py migrate (To create the structure (schemas, tables) the database)
- python manage.py runserver
- http://127.0.0.1:8000/
- https://python-poetry.org/docs
- Use the version Poetry (version 1.3.2)
- python manage.py createsuperuser
- http://127.0.0.1:8000/admin
- git clone git@github.com:elinaldosoft/gastemenos.git gastemenos
- cd gastemenos
- python -m venv venv
- venv\Scripts\Activate.ps1
- poetry install
- python manage.py check
- python manage.py migrate (To create the structure (schemas, tables) the database)
- python manage.py test (test full)
- python manage.py test app/accounts (tests account)
- python manage.py test app/financial (tests financial)
# postgres
insert into financial_typeexpense (name, description, created_at, updated_at) values('Educação' ,'Estudos e relacionados',now(), now());
insert into financial_typeexpense (name, description, created_at, updated_at) values('Transporte' ,'Transporte',now(), now());
insert into financial_typeexpense (name, description, created_at, updated_at) values('Outros' ,'Outros',now(), now());
# sqlite
insert into financial_typeexpense (name, description, created_at, updated_at) values('Educação' ,'Estudos e relacionados', datetime('now','localtime'), datetime('now','localtime'));
insert into financial_typeexpense (name, description, created_at, updated_at) values('Transporte' ,'Transporte', datetime('now','localtime'), datetime('now','localtime'));
insert into financial_typeexpense (name, description, created_at, updated_at) values('Outros' ,'Outros', datetime('now','localtime'), datetime('now','localtime'));