Skip to content

Webapp with scanner to process deliveries and inventories

License

Notifications You must be signed in to change notification settings

superquinquin/Scannettes

Repository files navigation

Scannettes

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 volume

when builded, you can poetry shell to enable the project venv.

For launching the application bash boot.sh.

Installation

Setup

mkdir inventaire
cd inventaire
git clone https://github.com/superquinquin/inventory-bl-scanner-webapp.git
mkdir volume
chmod 777 volume

Configuration

  • cannettes_configs/cannettes_config.yaml Is the main configuration file that will be injected in the app during init time.
  • cannettes_configs/secrets.yaml will contains all your internal admin users credentials
  • .env will contains all api secrets and credentials for running the app. Those will be parsed and exported in cannettes_config.yaml at init time.

Scannettes configurations

Generate and fill cannettes_configs/cannettes_config.yaml from cannettes_configs/cannettes_config.yaml.example

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

Env

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

Create Users

python set_users_config.py

Following 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.

Docker-compose

Save your docker-compose file as docker-compose.yml. No particular inputs are needed unless you want to custumize further your docker setup.

Launching

Once the applications is configurated:

docker-compose up --build -d

About

Webapp with scanner to process deliveries and inventories

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published