- Visual Studio Code
- Docker
- Please make sure that you are using Docker Compose V2 (look in your docker desktop settings for it)
- Remote Development extension
- In case you are unfamiliar with Remote Development extension, in VS Code, open the campfhir code folder and an option to 'Folder contains a Dev Container configuration file. Reopen folder to develop in a container' will pop up on the right bottom. Select 'Reopen in container'. If this is the first time building the project, using the command tools you can Shift + Cmd + P and select 'Dev containers: rebuild containers without cache`.
- Then you can start querying the API at
http://localhost:8889
This will watch the project directory and restart as necessary.
yarn chat
yarn chat-styles
yarn lint
yarn clear-cache
Sometimes, it's more convenient to run the code directly in the computer's directory instead of within the devcontainer
.
This can be achieved by installing and running the devcontainer
CLI.
Here is a sample command that can be used to run the devcontainer
through the CLI:
devcontainer up --id-label name="Campfhir" --workspace-folder .
Note: Hot refresh will only work if run using the devcontainer
CLI