@@ -24,30 +24,26 @@ This repository contains a collection of solutions that leverage Azure AI servic
2424Use Makefile to run the project locally.
2525
2626``` shell
27- # help
28- make
27+ # Launch backend API server
28+ make backend
2929
30- # install dependencies for development
31- make install-deps-dev
30+ # Launch frontend app server
31+ make frontend
3232
33- # run tests
34- make test
35-
36- # run CI tests
37- make ci-test
33+ # Azure Functions
34+ make azure-functions-start
3835```
3936
4037### Docker development
4138
42- ``` shell
43- # build docker image
44- make docker-build
39+ See the actual implementation in the [ compose.yaml] ( ./compose.yaml ) file.
4540
46- # run docker container
47- make docker-run
41+ ``` shell
42+ # Launch backend API server
43+ docker compose up backend
4844
49- # run CI tests in docker container
50- make ci-test- docker
45+ # Launch frontend app server
46+ docker compose up frontend
5147```
5248
5349### Run local test
@@ -64,18 +60,19 @@ make test
6460
6561## Deployment instructions
6662
67- ### Docker compose
63+ ``` shell
64+ # Deploy Azure resources via Bicep
65+ cd infra
66+ make deploy
67+ ```
6868
69- Docker compose is used to run the services locally.
70- Refer to the following steps to run the services.
71- See the actual implementation in the [ compose.yaml] ( ./compose.yaml ) file.
69+ Azure Functions are deployed using the following commands.
7270
7371``` shell
74- # Create environment files for each service
75- cp ./settings/{NAME}.env.sample ./settings/{NAME}.env
76-
77- # Build and run the services
78- docker compose up
72+ # Deploy Azure Functions
73+ make azure-functions-deploy
74+ # Publish Azure Functions
75+ make azure-functions-publish
7976```
8077
8178### Push docker image to Docker Hub
@@ -86,18 +83,3 @@ To publish the docker image to Docker Hub via GitHub Actions, you need to set th
8683gh secret set DOCKERHUB_USERNAME --body $DOCKERHUB_USERNAME
8784gh secret set DOCKERHUB_TOKEN --body $DOCKERHUB_TOKEN
8885```
89-
90- ### Deploy Azure Functions
91-
92- To deploy the Azure Functions, run the following script.
93-
94- ``` shell
95- # Deploy the Azure Functions
96- sh ./scripts/deploy-azure-functions.sh
97-
98- # Destroy the Azure Functions
99- sh ./scripts/destroy-azure-functions.sh
100- ```
101-
102- - [ scripts/deploy-azure-functions.sh] ( ./scripts/deploy-azure-functions.sh ) : Deploy the Azure Functions using Azure CLI.
103- - [ scripts/destroy-azure-functions.sh] ( ./scripts/destroy-azure-functions.sh ) : Destroy the Azure Functions using Azure CLI.
0 commit comments