Skip to content

Self-Hosted Url Shortener build with Express.js and MongoDB 🦫

License

Notifications You must be signed in to change notification settings

P3ntest/url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Url Shortener 🦫

Selfhosted Url Shortener with Google ReCaptcha to prevent spam.

Live example

Build with express and mongoDb

Hosting

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.

Environment Variables

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

Developing

Please fork and clone the repository to start editing.

Url Shortener is a npm project.

  1. Install with npm npm install
  2. Start a development server with npm run start:dev

About

Self-Hosted Url Shortener build with Express.js and MongoDB 🦫

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published