Skip to content

pzn/clipapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clipapp

Build Status

what is it?

A simple webapp, tinyurl-alike, built with Spring Boot.

live demo

Web UI

http://clipapp.herokuapp.com

GET

POST

{
  "url": "https://www.google.ca"
}
{
  "value": "jfcnsie"
}

launch it locally?

prerequisites

  • jdk8+
  • maven
  • postgresql 10.x, with database clipapp created (optional, for data persistance: use Spring profile database)
  • redis (optional, for caching: use Spring profile redis-caching)
mvn spring-boot:run -Dspring.profiles.active=<profiles>

where <profiles> can be:

  1. simple: everything in memory
  2. database: uses postgresql for storage
  3. redis-caching: uses redis for caching
  4. database,redis-caching: 2+3

refer to project's application.yml for default settings, or override them.

locally, but in docker

because why not.

mvn install
docker run --name clipapp -p 8080:8080 -e SPRING_PROFILES_ACTIVE=<profiles> clipapp:0.0.1-SNAPSHOT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published