- Project Title: Litt-le
- Project Developer: Bikathi Martin
- Project License: Apache2.0 License
- Languages: Java, JavaScript, HTML5, CSS3
The core vision of the project is to develop a simple, self-hostable URL shortening application in as few lines of code as possible(under 1000). The service should function the same way as Bit.ly(S.P) but serve only one purpose: to shorten and persist shortened URLs for the user hosting it.
The idea and inspiration to create this project comes from a long-time desire to become an independent internet user, and to develop software that, Does One Thing And Does It Well. In regards to the first mentioned goal, this project is one in a line of others code named Project Mephitis*. This project aims to develop a suite of fully free, open source, self-hosted applications that reduce dependence on third-party services, tools and subscriptions, all while keeping your personal data all to yourself.
A Mephitis is the scientific name for a skunk(Mephitis mephitis). Scientists believe skunks to be one of the most independent animals in the world, needing no packs or groups in order to ward of predators or survive.
This short video clip shows how the UI of the project works and how to use the app to shorten your own URLs and use them in real life in your browser(or any app that supports shortened URLs)
litt-le-sample-cast.webm
This guide was written with VPS or self-hosting users mind, and also with a preferential bias towards the Linux space.
Before proceeding, ensure you have each of the following installed(as all projects in the Mephitis code base will use these):
- Java JVM/JDK- Version 17+
- Apache Maven- Version 3.6+
- MySQL Database- Version 8+
- From the releases section of this repo download the latest version of the Litt-le project. It is downloaded as a jar file.
- With all pre-requisites installed, head over to whatever directory the project was installed on and run the command below to install dependencies and start up the application:
java -jar {project-name-version}.jar
The project should startup with a console prompts similar to these:
3. Open your browser and head over to localhost:8080/ and you should see a page similar to the one shown in the sample video above. Now you can go ahead and test the app by shortening any link and using the shortened link to visit the page from another tab.
4. To kill the app simply press ctrl+c
on your keyboard or close your termimal window.
5. Now that you have the project up and running, you can always have it run as a background service by running the following command on Linux:
nohup java -jar {project-name-version}.jar &
This way allows you to close the terminal and still have the app running as a background service with an output similar to this:
To kill the background service, simply run:
killall java
- Consider setting up the app to start as a background service each time your computer starts.
- Check the MySQL database to see how the URLs are being persisted.
- Change the code to suit your own needs, its free and entirely open source.
To support this and other cool projects that I spend time working on, kindly consider donating via PayPal. Your kindness is appreciated. Donate To Bikathi Martin(jCreator on PayPal)