Backend Flask API
cd backend
pip install pipenv
pipenv install
pipenv shell
python main.py
Frontend
cd frontend
npm install
npm run dev
-
GET http://localhost:5000/api/applications.
Get all applications from database. -
DELETE http://localhost:5000/api/applications/<applicationId>.
Delete application by applicationId. -
POST http://localhost:5000/api/decision_engine.
Add new application to database. -
GET http://localhost:5000/api/balance_sheet.
Get balance sheet from application provider, compute preAssessment value, total assets value and total profit or loss by company.
cd backend
pipenv shell
pytest
Please use the following combination to test.
[
{
"company":"ABC","accountingProvider:"Xero"
},
{
"company":"XYZ","accountingProvider:"MYOB"
}
]
To add more test cases, please modify backend/SHEET.json
docker-compose build
docker-compose up