Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 example node-example
Last synced: about 2 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 (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-16T13:14:06.000Z (5 months ago)
- Last Synced: 2024-08-17T11:52:12.121Z (5 months ago)
- Topics: docker, example, node-example
- 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 labsNote: 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`.