https://github.com/mediacomem/revprod-landing-page
Landing page for The Revolutionary Product, a multi-component web application to illustrate CORS and reverse proxying
https://github.com/mediacomem/revprod-landing-page
Last synced: about 1 year ago
JSON representation
Landing page for The Revolutionary Product, a multi-component web application to illustrate CORS and reverse proxying
- Host: GitHub
- URL: https://github.com/mediacomem/revprod-landing-page
- Owner: MediaComem
- License: mit
- Created: 2022-01-28T07:14:25.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-10T01:10:26.000Z (over 1 year ago)
- Last Synced: 2025-02-14T17:43:26.006Z (over 1 year ago)
- Language: EJS
- Size: 184 KB
- Stars: 0
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# The Revolutionary Product - Landing Page
Landing page for The Revolutionary Product, a multi-component web application to
illustrate [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing)
and [reverse proxying](https://en.wikipedia.org/wiki/Reverse_proxy).
[](https://github.com/MediaComem/revprod-landing-page/actions/workflows/build.yml)
[](https://opensource.org/licenses/MIT)
- [Requirements](#requirements)
- [Development](#development)
- [Production](#production)
- [Configuration](#configuration)
## Requirements
- [Node.js][node] 22.x
## Development
```bash
# Clone and move into the repository
git clone https://github.com/MediaComem/revprod-landing-page.git
cd revprod-landing-page
# Install dependencies
npm ci
# Run the application in development mode
npm run dev
```
## Production
```bash
# Clone and move into the repository
git clone https://github.com/MediaComem/revprod-landing-page.git
cd revprod-landing-page
# Install dependencies
npm install --production
# Run the application in development mode
REVPROD_BACKEND_BASE_URL=https://revprod.example.com node ./bin.js
```
## Configuration
The application can be configured using the following environment variables:
| Variable | Default value | Description |
| :------------------------- | :--------------------------------------- | :-------------------------------------------------------------- |
| `REVPROD_BACKEND_BASE_URL` | - | The public URL at which the revprod backend can be accessed. |
| `REVPROD_LISTEN_HOST` | `0.0.0.0` | The IP address to listen to (use `0.0.0.0` for any IP address). |
| `REVPROD_LISTEN_PORT` | `3000` | The port to listen on. |
| `REVPROD_TITLE` | `The Revolutionary Product` | The title displayed in the navbar. |
| `REVPROD_LOG_LEVEL` | `DEBUG` in production, `TRACE` otherwise | The highest level of log messages to output. |
> In development mode, you can also put these settings in a `.env` file in the
> repository. See the `.env.sample` file.
[cors]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
[node]: https://nodejs.org