51 lines
1.2 KiB
Markdown
51 lines
1.2 KiB
Markdown
# Clone the Repository into a container
|
|
|
|
Open VS Code and press ```Ctrl + Shift + P``` (Windows/Linux) or ```Cmd + Shift + P``` (Mac) to get to the Command Palette
|
|
|
|
Type ```DevContainers Clone...``` until you can see the command:
|
|
DevContainers: Clone Repository in Container Volume...
|
|

|
|
|
|
Enter the URL of the repository:
|
|
|
|
https://gitea.not-my.cloud/dieter/test_dev.git
|
|
|
|

|
|
|
|
The repo should be cloned and the container starts up:
|
|
|
|

|
|
|
|
Now you are able to open a new terminal:
|
|
|
|

|
|
|
|
# Install packages
|
|
|
|
First you should install all related packages with
|
|
|
|
```npm install```
|
|
|
|
This will install the packages defined in [package.json](../package.json)
|
|
|
|
# Start the Server
|
|
|
|
```npm run devStart``` or ```npx nodemon```
|
|
|
|

|
|
|
|
or
|
|
|
|

|
|
|
|
the second method uses the [nodemon.json](../nodemon.json) to configure nodemon.
|
|
|
|
# .env file
|
|
|
|
To have different behavior on your dev host, you cloud add an .env file.
|
|
|
|
Here are the key-values of an .evc file:
|
|
|
|
```bash
|
|
PORT = 3000
|
|
``` |