generated from amosproj/amos202Xss0Y-projname
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #237 from amosproj/documentation/sprint-13-ahmed
Last sprint's deliverables
- Loading branch information
Showing
28 changed files
with
707 additions
and
159 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SPDX-License-Identifier: MIT | ||
SPDX-FileCopyrightText: 2024 Ahmed Sheta <ahmed.sheta@fau.de> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SPDX-License-Identifier: MIT | ||
SPDX-FileCopyrightText: 2024 Ahmed Sheta <ahmed.sheta@fau.de> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SPDX-License-Identifier: MIT | ||
SPDX-FileCopyrightText: 2024 Simon Zimmermann <tim.simon.zimmermann@fau.de> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SPDX-License-Identifier: MIT | ||
SPDX-FileCopyrightText: 2023 Nico Hambauer <nico.hambauer@fau.de> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SPDX-License-Identifier: MIT | ||
SPDX-FileCopyrightText: 202$ Simon Zimmermann <tim.simon.zimmermann@fau.de> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SPDX-License-Identifier: MIT | ||
SPDX-FileCopyrightText: 2024 Ahmed Sheta <ahmed.sheta@fau.de> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<!-- | ||
SPDX-License-Identifier: MIT | ||
SPDX-FileCopyrightText: 2023 Felix Zailskas <felixzailskas@gmail.com> | ||
--> | ||
|
||
# Creating the Environment | ||
|
||
The repository contains the file `.env.template`. This file is a template for | ||
the environment variables that need to be set for the application to run. Copy | ||
this file into a file called `.env` at the root level of this repository and | ||
fill in all values with the corresponding secrets. | ||
|
||
To create the virtual environment in this project you must have `pipenv` | ||
installed on your machine. Then run the following commands: | ||
|
||
```[bash] | ||
# for development environment | ||
pipenv install --dev | ||
# for production environment | ||
pipenv install | ||
``` | ||
|
||
To work within the environment you can now run: | ||
|
||
```[bash] | ||
# to activate the virtual environment | ||
pipenv shell | ||
# to run a single command | ||
pipenv run <COMMAND> | ||
``` | ||
|
||
# Build Process | ||
|
||
This application is built and tested on every push and pull request creation | ||
through Github actions. For this, the `pipenv` environment is installed and then | ||
the code style is checked using `flake8`. Finally, the `tests/` directory is | ||
executed using `pytest` and a test coverage report is created using `coverage`. | ||
The test coverage report can be found in the Github actions output. | ||
|
||
In another task, all used packages are tested for their license to ensure that | ||
the software does not use any copy-left licenses and remains open source and | ||
free to use. | ||
|
||
If any of these steps fail for a pull request the pull request is blocked from | ||
being merged until the corresponding step is fixed. | ||
|
||
Furthermore, it is required to install the pre-commit hooks as described | ||
[here](https://github.com/amosproj/amos2023ws06-sales-lead-qualifier/wiki/Knowledge#pre-commit). | ||
This ensures uniform coding style throughout the project as well as that the | ||
software is compliant with the REUSE licensing specifications. | ||
|
||
# Running the app | ||
|
||
To run the application the `pipenv` environment must be installed and all needed | ||
environment variables must be set in the `.env` file. Then the application can | ||
be started via | ||
|
||
```[bash] | ||
pipenv run python src/main.py | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!-- | ||
SPDX-License-Identifier: MIT | ||
SPDX-FileCopyrightText: 2023 Simon Zimmermann | ||
SPDX-FileCopyrightText: 2023 Berkay Bozkurt <resitberkaybozkurt@gmail.com> | ||
--> | ||
|
||
# Automation | ||
|
||
The _Controller_ is a planned component, that has not been implemented beyond a | ||
conceptual prototype. In the planned scenario, the controller would coordinate | ||
BDC, MSP and the external components as a centralized instance of control. In | ||
contrast to our current design, this scenario would enable the automation of our | ||
current workflow, where there are currently several steps of human interaction | ||
required to achieve a prediction result for initially unprocessed lead data. | ||
|
||
## Diagrams | ||
|
||
The following diagrams were created during the prototyping phase for the | ||
Controller component. As they are from an early stage of our project, the | ||
Merchant Size Predictor is labelled as the (Estimated) Value Predictor here. | ||
|
||
### Component Diagram | ||
|
||
![Component Diagram](Media/component-diagram-with-controller.svg) | ||
|
||
### Sequence Diagram | ||
|
||
![Sequence Diagram](Media/sequence-diagram.svg) | ||
|
||
### Controller Workflow Diagram | ||
|
||
![Controller Workflow Diagram](Media/controller-workflow-diagram.jpg) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!-- | ||
SPDX-License-Identifier: MIT | ||
SPDX-FileCopyrightText: 2023 Sophie Heasman <sophieheasmann@gmail.com> | ||
SPDX-FileCopyrightText: 2024 Simon Zimmermann <tim.simon.zimmermann@fau.de> | ||
--> | ||
|
||
# Data Field Definitions | ||
|
||
This document outlines the data fields obtained for each lead. The data can be | ||
sourced from the online _Lead Form_ or be retrieved from the internet using | ||
APIs. | ||
|
||
## Data Field Table | ||
|
||
The most recent Data Fields table can now be found in a | ||
[separate CSV File](./data-fields.csv). | ||
|
||
## Links to Data Sources: | ||
|
||
Lead form: https://www.sumup.com/de-de/kontaktieren-vertriebsteam/ \ | ||
Google Places API: https://developers.google.com/maps/documentation/places/web-service/overview \ | ||
OpenAI API: https://platform.openai.com/docs/overview \ | ||
Meta API: https://developers.facebook.com/docs/graph-api/overview |
Oops, something went wrong.