Skip to content

yanivkrol/configuration-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dev env setup

Python version: 3.11

verify python version: python --version
create virtual env: python -m venv venv
activate virtual env: source venv/bin/activate
install dependencies: pip install -r requirements.txt

Running the streamlit app:

streamlit run main/app.py

Note that you (usually) don't need to rerun the app for changes to take effect, as the script is executed on every interaction.

Running using PyCharm (for debugging):

img.png
Make sure the Python Interpreter is set to the virtual env created above: /venv/bin/python

Useful streamlit links:

Adding a new configuration:

To add a configuration with the name "Example" (e.g. "ExternalProduct"), Implement the following interfaces:

  • Example - the configuration object, which is also saved in the database.
  • ExampleSelection - the user's selection for a new configuration. from which an Example object is created.
  • ExampleConfigurationFrotnend - incharge of displaying the data and manipulation of it by the user.
  • ExampleConfigurationMiddleware - handles data manipulation between the database and the frontend, can be regarded as the 'Backend logic'.
  • ExampleConfigurationResponse - transforms the configurations to be served as API.

For each of the above (except ExampleSelection) an entry should be added in their respective __init__.py file, so the main script or the controller can access them.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages