Skip to content

Commit

Permalink
Merge pull request #22 from Azure-Samples/fix/remove-post-create
Browse files Browse the repository at this point in the history
fix: remove post create
  • Loading branch information
anfibiacreativa authored Aug 29, 2024
2 parents dc67a44 + ffc343e commit 683d961
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"forwardPorts": [8000],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "./.devcontainer/postCreateCommand.sh",
"postCreateCommand": "/.devcontainer/postCreateCommand.sh",

// Set minimal host requirements for the container.
"hostRequirements": {
Expand Down
5 changes: 1 addition & 4 deletions .devcontainer/postCreateCommand.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ echo "Installing dependencies..."
npm install

echo "Installing playwright browsers..."
npx -y playwright install --with-deps

echo "Start application, so it is available in port 8000"
npm start
npx -y playwright install --with-deps
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ It is a classic chat user interface that can be used to send messages to the API
[![Open in GitHub Codespaces](https://img.shields.io/static/v1?style=for-the-badge&label=GitHub+Codespaces&message=Open&color=brightgreen&logo=github)](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=782482632&machine=standardLinux32gb&devcontainer_path=.devcontainer%2Fdevcontainer.json&location=WestUs2)
[![Open in Remote - Containers](https://img.shields.io/static/v1?style=for-the-badge&label=Remote%20-%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/Azure-Samples/azure-openai-chat-frontend)

When opening in Codespaces or Remote Containers, you will have all the dependencies preinstalled. Once the container is ready, run

```sh
npm start
```

The frontend will be running in forwarded port 8000.

> [!IMPORTANT]
> You will need to follow instructions in [Getting Started](#getting-started), to deploy a backend and connect it to the frontend app.
[Features](#features)[Gettting Started](#getting-started)[Guidance](#guidance)[Resources](#resources)

## Features
Expand Down Expand Up @@ -44,6 +55,9 @@ All texts and labels are configurable to match your use case. To customize the t

## Running the application


This application is optimized to be opened in a container. Yo

### Local installation

To run the application locally, you must install [Node.js LTS](https://nodejs.org) and make sure you can run `npm` commands from your terminal.
Expand Down

0 comments on commit 683d961

Please sign in to comment.