Selfhosted Url Shortener with Google ReCaptcha to prevent spam.
Build with express and mongoDb
Register a Google ReCaptcha V3 Site and store the key and secret in the environment variables.
The project is dockerized. Use docker build . -t p3ntest/url
to build the image.
Name | Default Value | Description |
---|---|---|
MONGO | - | Url of the MongoDB to connect to |
GOOGLE_KEY | - | Google ReCaptcha Site Key |
GOOGLE_SECRET | - | Google ReCaptcha Site Secret |
PORT | 8000 |
Port of the express server |
Please fork and clone the repository to start editing.
Url Shortener is a npm project.
- Install with npm
npm install
- Start a development server with
npm run start:dev