Mdblinks is a simple URL shortener that uses a MongoDB database to store the short URLs. You can use it to create short URLs that can be easily shared, tweeted, or emailed to friends.
Mdblinks makes it easier to insert UTM parameters to your URLs, so you can track the performance of your links in Google Analytics.
You should use a short URL for any link that points back to the mongodb.com website
Mdblinks can be accessed via the following URL:
https://admin.mdblink.com
Log in with your @mongodb.com email address, and you will be able to create short URLs.
Please contact the MongoDB DevRel team if you would like to contribute to this project.
To run the application in your local environment, clone the repository, install dependencies for each component, and run the project with docker-compose.
git clone git@github.com:mongodb-developer/mdblinks.git
cd mdblinks
cd api && npm install && cd ..
cd admin && npm install && cd ..
cd landing && npm install && cd ..
docker-compose up- The
apiservice is running on port5050 - The
redirectorservice is running on port8080 - The
adminservice is running on port3000 - The
landingservice is running on port3002 - A local community MongoDB instance is running on port
27017
Once you have the dev environment running, you can test the application by visiting the following URLs:
http://localhost:3000to access the admin interface and create a short URLhttp://localhost:8080/short-urlto test your newly created short URL