Skip to content

Commit 7e02609

Browse files
authored
Merge pull request #10 from neo4j-graphacademy/devcontainer
devcontainer configuration
2 parents f0f5c55 + 6f82e21 commit 7e02609

File tree

6 files changed

+48
-3
lines changed

6 files changed

+48
-3
lines changed

.devcontainer/devcontainer.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "Build a Neo4j-backed Chatbot with TypeScript",
3+
"image": "mcr.microsoft.com/devcontainers/typescript-node",
4+
"postCreateCommand": "bash .devcontainer/post_create.sh",
5+
"portsAttributes": {
6+
"3000": {
7+
"label": "Application",
8+
"onAutoForward": "openPreview"
9+
}
10+
},
11+
"forwardPorts": [
12+
3000
13+
],
14+
"customizations": {
15+
"codespaces": {
16+
"openFiles": [
17+
"SETUP.md",
18+
".env.example"
19+
]
20+
},
21+
"vscode": {
22+
"extensions": [
23+
"formulahendry.code-runner"
24+
]
25+
}
26+
}
27+
}

.devcontainer/post_create.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm install --include=dev

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Create a copy of this file named `.env.local` and fill in the values before running the application.
12
NEO4J_URI="bolt://123.45.678.90:7687"
23
NEO4J_USERNAME="neo4j"
34
NEO4J_PASSWORD="three-word-password"

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto

.gitpod.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

SETUP.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Setup
2+
3+
This repository accompanies the [Build a Neo4j-backed Chatbot with TypeScript](https://graphacademy.neo4j.com/courses/llm-chatbot-typescript/) on [GraphAcademy](https://graphacademy.neo4j.com).
4+
5+
When the devcontainer is created, such as in a GitHub codespace, all the required software and packages will be installed.
6+
7+
Follow the [Setup Instructions in GraphAcademy](https://graphacademy.neo4j.com/courses/llm-chatbot-typescript/1-project-setup/2-setup/) to get started.
8+
9+
You will need to:
10+
11+
1. Create a new [`.env.local`](.env.local) file and copy the contents of the [`.env.example`](.env.example) file into it
12+
2. Update the environment values in the [`.env`](.env) file with the values in the [Setup Instructions](https://graphacademy.neo4j.com/courses/llm-chatbot-typescript/1-project-setup/2-setup/)
13+
14+
You can run the application using the command:
15+
16+
```bash
17+
npm run dev
18+
```

0 commit comments

Comments
 (0)