mirror of
https://github.com/janishutz/fundamentals-of-webengineering.git
synced 2025-11-25 13:54:25 +00:00
29 lines
551 B
Markdown
29 lines
551 B
Markdown
# Local Development
|
|
|
|
Only change files inside the `src` directory.
|
|
|
|
## Client side
|
|
|
|
All client side files are located in the `src/client` directory.
|
|
|
|
## Server side
|
|
|
|
All server side files are located in the `src/server` directory.
|
|
|
|
# Local Testing
|
|
|
|
## run container for local testing
|
|
|
|
```bash
|
|
docker build -t my-webapp .
|
|
|
|
docker run -it --rm -p 5173:5173 my-webapp
|
|
```
|
|
Open a browser and connect to http://localhost:5173
|
|
|
|
## run bash in interactive container
|
|
```bash
|
|
docker build -t my-webapp src/.
|
|
|
|
docker run -it --rm -p 5173:5173 my-webapp bash
|
|
``` |