- api
- contract between backend and frontend
- app
- API and routing defined here
- config
- config for AWS RDS
- db
- logic for retrieving and processing data
- lib
- Python library
- ui-src
- frontend (src)
- web
- frontend (dist)
pip install -r requirements.txt
export PYTHONPATH=$(pwd):$PYTHONPATH
Add project root folder to pythonpath
make dev
: start server in dev modemake start
: start server in production modemake image
: build app docker imagemake docker_run
: start server within docker env
flask run --port=8080
- [First time] run
npm install
in 'ui-src' folder ng serve
to build and serve app- Access from localhost:4200
- Make changes if ncessary
ng build --prod
to prepare files for dist- Copy files from 'dist' subfolder to 'web'