Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/betrcode/shorturl
Spring Boot + Velocity + MongoDB to build a simple shortURL application
https://github.com/betrcode/shorturl
Last synced: about 10 hours ago
JSON representation
Spring Boot + Velocity + MongoDB to build a simple shortURL application
- Host: GitHub
- URL: https://github.com/betrcode/shorturl
- Owner: betrcode
- Created: 2015-05-17T09:53:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-12-29T20:33:40.000Z (almost 4 years ago)
- Last Synced: 2023-03-11T23:47:21.315Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 788 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stack
Built a simple shortURL web application using:
* Spring Boot
* Thymeleaf template engine
* MongoDB# Features
* Create a "short" URL from another, perhaps longer, URL, and persist it in db.
* Receive a request for the short URL and redirect to the long URL.# Requirements
* Java 11
* MongoDB# How to
* Build: `mvn install`
* Start MongoDB: `docker run -p 27017:27017 --name shorturl-mongo mongo:latest`
* Run packaged application: `java -jar target/shortURL-0.0.1-SNAPSHOT.jar`
* Or run using foreman: `foreman run web`
* Access application: http://localhost:8080/