Skip to content

Commit 470e943

Browse files
authored
Merge pull request #33 from ks6088ts-labs/feature/issue-32_update-docs
update docs
2 parents 4f2c9de + 14aa2fb commit 470e943

File tree

10 files changed

+378
-100
lines changed

10 files changed

+378
-100
lines changed

README.md

Lines changed: 3 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -6,75 +6,8 @@
66

77
# template-langgraph
88

9-
This is a template repository for Python
9+
A comprehensive LangGraph template for building AI Agents with Python.
1010

11-
## Prerequisites
11+
## Documentation
1212

13-
- [Python 3.10+](https://www.python.org/downloads/)
14-
- [uv](https://docs.astral.sh/uv/getting-started/installation/)
15-
- [GNU Make](https://www.gnu.org/software/make/)
16-
17-
## Development instructions
18-
19-
### Local development
20-
21-
Use Makefile to run the project locally.
22-
23-
```shell
24-
# help
25-
make
26-
27-
# install dependencies for development
28-
make install-deps-dev
29-
30-
# run tests
31-
make test
32-
33-
# run CI tests
34-
make ci-test
35-
```
36-
37-
### Docker development
38-
39-
```shell
40-
# build docker image
41-
make docker-build
42-
43-
# run docker container
44-
make docker-run
45-
46-
# run CI tests in docker container
47-
make ci-test-docker
48-
```
49-
50-
## Deployment instructions
51-
52-
### Docker Hub
53-
54-
To publish the docker image to Docker Hub, you need to [create access token](https://app.docker.com/settings/personal-access-tokens/create) and set the following secrets in the repository settings.
55-
56-
```shell
57-
gh secret set DOCKERHUB_USERNAME --body $DOCKERHUB_USERNAME
58-
gh secret set DOCKERHUB_TOKEN --body $DOCKERHUB_TOKEN
59-
```
60-
61-
### Azure Static Web Apps
62-
63-
```shell
64-
RESOURCE_GROUP_NAME=your-resource-group-name
65-
SWA_NAME=your-static-web-app-name
66-
67-
# Create a static app
68-
az staticwebapp create --name $SWA_NAME --resource-group $RESOURCE_GROUP_NAME
69-
70-
# Retrieve the API key
71-
AZURE_STATIC_WEB_APPS_API_TOKEN=$(az staticwebapp secrets list --name $SWA_NAME --query "properties.apiKey" -o tsv)
72-
73-
# Set the API key as a GitHub secret
74-
gh secret set AZURE_STATIC_WEB_APPS_API_TOKEN --body $AZURE_STATIC_WEB_APPS_API_TOKEN
75-
```
76-
77-
Refer to the following links for more information:
78-
79-
- [Deploying to Azure Static Web App](https://docs.github.com/en/actions/use-cases-and-examples/deploying/deploying-to-azure-static-web-app)
80-
- [Create a static web app: `az staticwebapp create`](https://learn.microsoft.com/en-us/cli/azure/staticwebapp?view=azure-cli-latest#az-staticwebapp-create)
13+
See the [documentation](https://ks6088ts-labs.github.io/template-langgraph/) for more information.

docs/deployment.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
## Deployment instructions
2+
3+
### Docker Hub
4+
5+
To publish the docker image to Docker Hub, you need to [create access token](https://app.docker.com/settings/personal-access-tokens/create) and set the following secrets in the repository settings.
6+
7+
```shell
8+
gh secret set DOCKERHUB_USERNAME --body $DOCKERHUB_USERNAME
9+
gh secret set DOCKERHUB_TOKEN --body $DOCKERHUB_TOKEN
10+
```
11+
12+
### Azure Static Web Apps
13+
14+
```shell
15+
RESOURCE_GROUP_NAME=your-resource-group-name
16+
SWA_NAME=your-static-web-app-name
17+
18+
# Create a static app
19+
az staticwebapp create --name $SWA_NAME --resource-group $RESOURCE_GROUP_NAME
20+
21+
# Retrieve the API key
22+
AZURE_STATIC_WEB_APPS_API_TOKEN=$(az staticwebapp secrets list --name $SWA_NAME --query "properties.apiKey" -o tsv)
23+
24+
# Set the API key as a GitHub secret
25+
gh secret set AZURE_STATIC_WEB_APPS_API_TOKEN --body $AZURE_STATIC_WEB_APPS_API_TOKEN
26+
```
27+
28+
Refer to the following links for more information:
29+
30+
- [Deploying to Azure Static Web App](https://docs.github.com/en/actions/use-cases-and-examples/deploying/deploying-to-azure-static-web-app)
31+
- [Create a static web app: `az staticwebapp create`](https://learn.microsoft.com/en-us/cli/azure/staticwebapp?view=azure-cli-latest#az-staticwebapp-create)

docs/development.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
## Development instructions
2+
3+
### Local development
4+
5+
Use Makefile to run the project locally.
6+
7+
```shell
8+
# help
9+
make
10+
11+
# install dependencies for development
12+
make install-deps-dev
13+
14+
# run tests
15+
make test
16+
17+
# run CI tests
18+
make ci-test
19+
```
20+
21+
### Testing
22+
23+
```shell
24+
# Run all tests for AI agents
25+
bash scripts/test_all.sh
26+
```
27+
28+
### Docker development
29+
30+
```shell
31+
# build docker image
32+
make docker-build
33+
34+
# run docker container
35+
make docker-run
36+
37+
# run CI tests in docker container
38+
make ci-test-docker
39+
```

docs/faq.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## FAQ
2+
3+
### Docker Compose で Elasticsearch を起動できない
4+
5+
**現象:**
6+
7+
WSL2 上で `docker compose up elasticsearch` を実行した際に、以下のエラーが発生する
8+
9+
`java.lang.IllegalStateException: failed to obtain node locks, tried [/usr/share/elasticsearch/data]; maybe these locations are not writable or multiple nodes were started on the same data path?`
10+
11+
**原因:**
12+
13+
Elasticsearch がデータディレクトリ(/usr/share/elasticsearch/data)にロックファイルを作成できないことを示しています。
14+
15+
**対処方法:**
16+
17+
ディレクトリの権限を修正するために、以下のコマンドを実行してください。
18+
19+
```shell
20+
sudo chown -R 1000:1000 ./assets/es_data
21+
```

docs/images/jupyterlab.png

253 KB
Loading

docs/images/langgraph-studio.png

324 KB
Loading

0 commit comments

Comments
 (0)