Open source Flask webapp for delivieries and inventory management for COOP with an ODOO backend.
On root
poetry build
poetry install
mkdir volume
chmod 777 volumewhen builded, you can poetry shell to enable the project venv.
For launching the application bash boot.sh.
mkdir inventaire
cd inventaire
git clone https://github.com/superquinquin/inventory-bl-scanner-webapp.git
mkdir volume
chmod 777 volumecannettes_configs/cannettes_config.yamlIs the main configuration file that will be injected in the app during init time.cannettes_configs/secrets.yamlwill contains all your internal admin users credentials.envwill contains all api secrets and credentials for running the app. Those will be parsed and exported incannettes_config.yamlat init time.
Generate and fill cannettes_configs/cannettes_config.yaml from cannettes_configs/cannettes_config.yaml.example
- Flask configuration : Flask server parameters
- Flask Soketio configuration : Flask SocketIo parameters
- Authentication JWT cookie configuration : Cookie
For env variable that will be imported into the configuration file, annotate ${<ENV_VAR_NAME>} for the specific fields you want to apply as an env variable. The config parser will retrieve and fill the config file with the env variables
Generate .env file after filling the différents ENV variable. It is recommended to set Odoo api credentials and SMTP server credentials as env variable. todo: create template
python set_users_config.pyFollowing the directives of the tool for creating admin users for the applications.
This tool will generate a cannettes_configs/secrets.yaml containing all the admin app users.
You can whenever you want add a new users to by reusing the tool. It will automatically append this new user to the current list of users
For removing users, nano cannettes_configs/secrets.yaml and manually remove the users you want to delete.
Save your docker-compose file as docker-compose.yml. No particular inputs are needed unless you want to custumize further your docker setup.
Once the applications is configurated:
docker-compose up --build -d