[add]: Bank to simbrella calls
This commit is contained in:
@@ -32,8 +32,10 @@ Then, open the `.env` file and add the following:
|
||||
|
||||
```ini
|
||||
# Environment Variables
|
||||
VALID_API_KEY=testtest-api-key-12345
|
||||
VALID_APP_ID=app1
|
||||
BASIC_AUTH_USERNAME=admin
|
||||
BASIC_AUTH_PASSWORD=password
|
||||
SWAGGER_URL="/documentation"
|
||||
API_URL="/swagger.json"
|
||||
```
|
||||
|
||||
This ensures that the application uses secure API keys and app IDs.
|
||||
@@ -46,14 +48,14 @@ Once you have the repository cloned, you can easily set up and run the applicati
|
||||
docker-compose up --build
|
||||
```
|
||||
|
||||
This command will build the Docker image and start the Flask application in a container. By default, the application will be accessible at `http://localhost:5000`.
|
||||
This command will build the Docker image and start the Flask application in a container. By default, the application will be accessible at `http://localhost:4500`.
|
||||
|
||||
### 4. Health Check
|
||||
|
||||
You can check if the Flask application is running by accessing the `/health` endpoint. To perform a health check, run the following command:
|
||||
|
||||
```bash
|
||||
curl http://localhost:7200/health
|
||||
curl http://localhost:4500/health
|
||||
```
|
||||
|
||||
If the application is running properly, you should receive a response similar to this:
|
||||
@@ -64,7 +66,17 @@ If the application is running properly, you should receive a response similar to
|
||||
}
|
||||
```
|
||||
|
||||
### 5. Stop the Application
|
||||
|
||||
### 5. Documentation
|
||||
|
||||
You can check the Swagger Doc by accessing the `/documentation` endpoint. Run the following command:
|
||||
|
||||
```bash
|
||||
curl http://localhost:4500/documentation
|
||||
```
|
||||
|
||||
|
||||
### 6. Stop the Application
|
||||
|
||||
To stop the application, use:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user