-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #51: Update sequence diagram to reflect change in code
fixes #51: Update sequence diagram fixes #51: Update doc string fixes #51: update README and TESTING
- Loading branch information
Maxence Guindon
committed
Apr 8, 2024
1 parent
f33b541
commit 3e41fb5
Showing
4 changed files
with
88 additions
and
66 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# nachet-backend | ||
|
||
## High level sequence diagram | ||
|
||
![SD_1 drawio (2)](https://github.com/ai-cfia/nachet-backend/assets/19809069/272f37dc-f4ec-449b-ba82-950c54b9f856) | ||
|
||
### Details | ||
|
@@ -12,41 +13,57 @@ | |
- Inference results from model endpoint are directly handled in `model_inference/inference.py` | ||
|
||
**** | ||
|
||
### RUNNING NACHET-BACKEND FROM DEVCONTAINER | ||
|
||
When you are developping, you can run the program while in the devcontainer by | ||
using this command: | ||
|
||
```bash | ||
hypercorn -b :8080 app:app | ||
``` | ||
|
||
### RUNNING NACHET-BACKEND AS A DOCKER CONTAINER | ||
If you want to run the program as a Docker container (e.g., for production), use: | ||
|
||
If you want to run the program as a Docker container (e.g., for production), use: | ||
|
||
```bash | ||
docker build -t nachet-backend . | ||
docker run -p 8080:8080 -v $(pwd):/app nachet-backend | ||
``` | ||
|
||
### TESTING NACHET-BACKEND | ||
To test the program, use this command: | ||
|
||
To test the program, use this command: | ||
|
||
```bash | ||
python -m unittest discover -s tests | ||
``` | ||
|
||
**** | ||
|
||
### ENVIRONMENT VARIABLES | ||
|
||
Start by making a copy of `.env.template` and renaming it `.env`. For the | ||
backend to function, you will need to add the missing values: | ||
|
||
* **NACHET_AZURE_STORAGE_CONNECTION_STRING**: Connection string to access | ||
- **NACHET_AZURE_STORAGE_CONNECTION_STRING**: Connection string to access | ||
external storage (Azure Blob Storage). | ||
* **NACHET_MODEL_ENDPOINT_REST_URL**: Endpoint to communicate with deployed | ||
model for inferencing. | ||
* **NACHET_MODEL_ENDPOINT_ACCESS_KEY**: Key used when consuming online endpoint. | ||
* **NACHET_DATA**: Url to access nachet-data repository | ||
* **NACHET_HEALTH_MESSAGE**: Health check message for the server. | ||
- **NACHET_MODEL_ENDPOINT_REST_URL**: Endpoint to communicate with deployed | ||
model for inferencing. | ||
- **NACHET_MODEL_ENDPOINT_ACCESS_KEY**: Key used when consuming online endpoint. | ||
- **NACHET_DATA**: Url to access nachet-data repository | ||
- **NACHET_SUBSCRIPTION_ID** | ||
- **NACHET_RESOURCE_GROUP** | ||
- **NACHET_WORKSPACE** | ||
- **NACHET_MODEL** | ||
- **NACHET_BLOB_PIPELINE_NAME** | ||
- **NACHET_BLOB_PIPELINE_VERSION** | ||
- **NACHET_BLOB_PIPELINE_DECRYPTION_KEY** | ||
|
||
**** | ||
### DEPLOYING NACHET | ||
|
||
### DEPLOYING NACHET | ||
|
||
If you need help deploying Nachet for your own needs, please contact us at | ||
[email protected]. | ||
<[email protected]>. |
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
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