This repository has been archived on 2025-01-31. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
test_dev/doc/README.md
Dieter Blocher b73e655e89 Update stuff
2025-01-30 16:42:28 +00:00

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...
![alt text](./assets/command_palllete.png)
Enter the URL of the repository:
https://gitea.not-my.cloud/dieter/test_dev.git
![alt text](./assets/repo_url.png)
The repo should be cloned and the container starts up:
![alt text](./assets/devcontainer_start.png)
Now you are able to open a new terminal:
![alt text](./assets/new_terminal.png)
# 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```
![alt text](./assets/start_node_server.png)
or
![alt text](./assets/start_node_server2.png)
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
```