See backend/README.
In this sample, you can locally modify and launch the frontend using AWS resources (API Gateway
, Cognito
, etc.) that have been deployed with cdk deploy
.
- Refer to Deploy using CDK for deploying on the AWS environment.
- Copy the
frontend/.env.template
and save it asfrontend/.env.local
. - Fill in the contents of
.env.local
based on the output results ofcdk deploy
(such asBedrockChatStack.AuthUserPoolClientIdXXXXX
). - Execute the following command:
cd frontend && npm ci && npm run dev
We have introduced a GitHub workflows for type-checking and linting. These are executed when a Pull Request is created, but waiting for the linting to complete before proceeding is not a good development experience. Therefore, these linting tasks should be performed automatically at the commit stage. We have introduced Lefthook as a mechanism to achieve this. It's not mandatory, but we recommend adopting it for an efficient development experience. Additionally, while we don't enforce TypeScript formatting with Prettier, we would appreciate it if you could adopt it when contributing, as it helps prevent unnecessary diffs during code reviews.
Refer here. If you are a mac and homebrew user, just run brew install lefthook
.
This is required because python code linting depends on mypy
and black
.
cd backend
python3 -m venv .venv # Optional (If you don't want to install poetry on your env)
source .venv/bin/activate # Optional (If you don't want to install poetry on your env)
pip install poetry
poetry install
For more detail, please check backend README.
Just run lefthook install
on the root directory of this project.