https://github.com/coderclub-dev/whoaminode
Who am I, Node?
https://github.com/coderclub-dev/whoaminode
Last synced: 9 days ago
JSON representation
Who am I, Node?
- Host: GitHub
- URL: https://github.com/coderclub-dev/whoaminode
- Owner: coderclub-dev
- License: mit
- Created: 2019-10-14T11:30:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T10:11:16.000Z (over 3 years ago)
- Last Synced: 2026-05-02T20:39:34.783Z (about 2 months ago)
- Language: JavaScript
- Size: 118 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Who am I, Go?
Simple HTTP project written in [Node](https://nodejs.org/en/)
See other _**Who am I?**_ options
- [Who am I, Go?](https://github.com/marcopollivier/whoamigo)
- [Who am I, Java?](https://github.com/marcopollivier/whoamijava)
- [Who am I, Clojure?](https://github.com/marcopollivier/whoamiclojure)
## Docker
### Build Docker image
```bash
$ docker build -t marcopollivier/whoami:node-latest .
```
or [Download the Docker Image](https://hub.docker.com/r/marcopollivier/whoami)
### Push Docker Image
```bash
$ docker push marcopollivier/whoami:node-latest
```
### Run Docker container
```bash
$ docker run --name whoami_go -d -p 8082:8082 marcopollivier/whoami:node-latest
```
## API REST
### Response
- **me**: hostname (container ID for example)
- **timestamp**: execution start time
```json
{
"me": "RJ-MB2680.lan",
"timestamp": "2019-02-12T10:00:00.000Z"
}
```