https://github.com/fcj-dntu/sample-02
An example of node application for labs or custom labs
https://github.com/fcj-dntu/sample-02
docker nodejs sample-app
Last synced: 8 months ago
JSON representation
An example of node application for labs or custom labs
- Host: GitHub
- URL: https://github.com/fcj-dntu/sample-02
- Owner: FCJ-DNTU
- License: mit
- Created: 2024-08-07T15:10:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-16T13:14:06.000Z (about 1 year ago)
- Last Synced: 2025-01-26T07:41:22.592Z (10 months ago)
- Topics: docker, nodejs, sample-app
- Language: JavaScript
- Homepage:
- Size: 188 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NodeJS Example Server with docker for AWS Labs & Custom Labs
An example of node application for labs or custom labs
Note: this application runs on linux
## Prerequisite
You must have these dependencies to clone and run this app
- Git
- Node ((check here)[https://nodejs.org/en/download/package-manager])
## Install
Easy to install, just `cd` to this repository folder and
```bash
bash docker_install.sh
```
## Start
You should start server with bash script, build a docker image named `my-image` and run docker container named `my-server` from this image
```bash
bash start.sh --image="my-image" --container="my-server"
```
You can stop the running container like this
```bash
bash stop.sh --container="my-server"
# Or use -r to remove the container
bash stop.sh -r --container="host"
```
Note: Docker container listens on PORT `3000` and receive request from Host in PORT `80`.