https://github.com/smashedr/node-redirect
Node Redirect
https://github.com/smashedr/node-redirect
Last synced: 15 days ago
JSON representation
Node Redirect
- Host: GitHub
- URL: https://github.com/smashedr/node-redirect
- Owner: smashedr
- Created: 2025-10-02T22:56:31.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2025-10-03T23:38:22.000Z (10 months ago)
- Last Synced: 2025-10-04T01:18:35.555Z (10 months ago)
- Language: JavaScript
- Size: 31.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
[](https://cssnr.com/uptime)
[](https://github.com/smashedr/node-redirect/pkgs/container/node-redirect)
[](https://github.com/smashedr/node-redirect/pkgs/container/node-redirect)
[](https://github.com/smashedr/node-redirect/pkgs/container/node-redirect)
[](https://github.com/smashedr/node-redirect/tags)
[](https://github.com/smashedr/node-redirect/releases)
[](https://github.com/smashedr/node-redirect/releases/latest)
[](https://github.com/smashedr/node-redirect/deployments/swarm)
[](https://github.com/smashedr/node-redirect/actions/workflows/build.yaml)
[](https://github.com/smashedr/node-redirect/actions/workflows/lint.yaml)
[](https://sonarcloud.io/summary/new_code?id=smashedr_node-redirect)
[](https://github.com/smashedr/node-redirect/pulse)
[](https://github.com/smashedr/node-redirect/graphs/contributors)
[](https://github.com/smashedr/node-redirect?tab=readme-ov-file#readme)
[](https://github.com/smashedr/node-redirect/tree/master/src)
[](https://github.com/smashedr/node-redirect/discussions)
[](https://github.com/smashedr/node-redirect/forks)
[](https://github.com/smashedr/node-redirect/stargazers)
[](https://cssnr.github.io/)
[](https://discord.gg/wXy6m2X8wY)
[](https://ko-fi.com/cssnr)
# Node Redirect
This is Private, how did you get here?
# Developing
You can run the dev server with [Docker](#with-docker) compose or [Node](#with-node) run.
### With Docker
This includes live reloads with the dev server.
```shell
docker compose -f "docker-compose-dev.yaml" up --build --remove-orphans --force-recreate
```
Then visit: http://localhost/
Note: this mounts the `./src` directory into the container for live reloading.
To use a different source path, set the `APP_FILES` environment variable.
See the [docker-compose-dev.yaml](docker-compose-dev.yaml) file for more details.
To use a different port set the `PORT` environment variable.
```shell
export PORT=8080
```
### With Node
```shell
npm i
npm run dev
```
Then visit: http://localhost:3000/
To use a different port set the `PORT` environment variable.
```shell
export PORT=8080
```
# Deploying
This is ready for deployment using both [Docker](#to-docker) and [Node](#to-node).
### To Docker
To deploy to a Swarm cluster using Traefik see the [docker-compose-swarm.yaml](docker-compose-swarm.yaml).
### To Node
This is ready to be deployed to services like Render.
The server installs with `npm i`, starts with `npm start`, and listens on `PORT` environment variable.
# Support
For general help or to request a feature, see:
- Q&A Discussion: https://github.com/smashedr/node-redirect/discussions/categories/q-a
- Request a Feature: https://github.com/smashedr/node-redirect/discussions/categories/feature-requests
If you are experiencing an issue/bug or getting unexpected results, you can:
- Report an Issue: https://github.com/smashedr/node-redirect/issues
- Chat with us on Discord: https://discord.gg/wXy6m2X8wY
- Provide General Feedback: [https://cssnr.github.io/feedback/](https://cssnr.github.io/feedback/?app=Node%20Redirect)
For more information, see the CSSNR [SUPPORT.md](https://github.com/cssnr/.github/blob/master/.github/SUPPORT.md#support).
# Contributing
If you would like to submit a PR, please review the [CONTRIBUTING.md](#contributing-ov-file).
Please consider making a donation to support the development of this project
and [additional](https://cssnr.com/) open source projects.
[](https://ko-fi.com/cssnr)
For a full list of current projects visit: [https://cssnr.github.io/](https://cssnr.github.io/)