GithubHelp home page GithubHelp logo

dalalsunil1986 / dev-bookshelf-redis-heroku Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hendisantika/dev-bookshelf-redis-heroku

0.0 0.0 0.0 1.49 MB

Demo application utilizing Spring Boot + MongoDB + Heroku.

License: Other

Java 48.88% JavaScript 19.65% CSS 11.49% HTML 19.98%

dev-bookshelf-redis-heroku's Introduction

##Spring Boot + Thymeleaf + Redis + Heroku## This demo application has been created as an example of deploying Spring Boot + Thymeleaf + Redis on Heroku.

###Technology Stack###

  • Spring Boot, no-xml Spring MVC 4 web application for Servlet 3.0 environment
  • Spring Data Redis
  • Database (Redis, Redis To Go)
  • Thymeleaf templates with added Joda Time & Spring Security Dialects
  • Heroku fully cloud deployable
  • Testing (JUnit/Mockito/MockMVC/AssertJ/Hamcrest)
  • Java 8, Spring Security 3.2, Maven 3, SLF4J, Logback, Bootstrap 3.3.4, jQuery 1.11.2, i18n, etc

###Live Demo### Be aware that this application is currently running on a free Heroku account. If it hasn't been accessed in 30 minutes, then the first request will take up to 120 seconds. Note that the demo application might fail to load altogether if the Heroku servers are busy.

Here is the Redis Developer's Bookshelf running on Heroku.

###Local Deployment### Load a local Redis database on port 6379. Flush the database with index equal to 0.

$ mvn clean install  
$ mvn spring-boot:run

Navigate to http://localhost:8080.

The application can also be deployed by running the Application.java class.

###Deploying to Heroku### The following steps require that the Heroku Toolbelt has been installed locally and that a Heroku account has been created.

Navigate to the project directory on the command line.

Before creating your Heroku application, make sure that there is a Git repository associated with the project.

$ git status

If a Git repository is not associated with the project, then create one before continuing.

Create a new application on Heroku.

$ heroku create

Rename your Heroku application if interested.

$ heroku apps:rename new-name

Add a Redis database to your Heroku application with the Redis To Go add-on. Note that your Heroku account must have a credit card attached in order to use free add-ons other than the PostgreSQL and MySQL add-ons.

$ heroku addons:create redistogo:nano  

Deploy project to Heroku.

$ git push heroku master

Look at your application logs to see what is happening behind the scenes.

$ heroku logs

If your application deploys without timing out then open it as follows.

$ heroku open

Author

Chris Bailey

dev-bookshelf-redis-heroku's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.