https://github.com/hostconfig/http
Welcome to hostconfig/http.
https://github.com/hostconfig/http
docker fullstack-development http nodejs typescript yarn-workspaces
Last synced: 3 months ago
JSON representation
Welcome to hostconfig/http.
- Host: GitHub
- URL: https://github.com/hostconfig/http
- Owner: hostconfig
- License: mit
- Created: 2023-12-19T18:16:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-27T01:48:36.000Z (over 2 years ago)
- Last Synced: 2025-01-16T22:37:21.702Z (about 1 year ago)
- Topics: docker, fullstack-development, http, nodejs, typescript, yarn-workspaces
- Language: JavaScript
- Homepage:
- Size: 222 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hostconfig/http
Welcome to hostconfig/http.
A mini express http server, with out-of-the-box support for static HTML and API routes.
To start:
```
yarn build && yarn start
```
*or*
```
docker compose up --build
```
The ```app = express()``` object will be served at ```localhost:8080``` over an http server.
## Debug mode
Additionally, a debug mode can be activated:
```
yarn dbg
```
## Test mode
Additionally, a test mode can be activated:
```
yarn test
```
See the ```test``` directory for an example.
## Health check
In all three modes, a healthcheck request will be sent periodically to:
```
/health
```
See the ```test``` directory for an example.
Thanks for reading!
[Nathan J. Hood](https://github.com/nathanjhood)