Skip to content

elinaldosoft/gastemenos

Repository files navigation

How to install the project

  • 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)

How to install the project in Windows

  • 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)

Running project

Python

Poetry

Create user to admin and access dashboard

How to install the project in Windows

  • 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)

How execute test

  • python manage.py test (test full)
  • python manage.py test app/accounts (tests account)
  • python manage.py test app/financial (tests financial)

Example Insert in TypeExpense

# 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'));