Git Product home page Git Product logo

chuck-norris-facts's Introduction

chuck-norris-facts

Example repository for trying out Spring Boot 1.4.0 new features and enhancements

Running locally it expects a postgresql database, storing the chuck norris facts.

On OS X follow these steps to quickly setup postgresql using homebrew

$ brew update
$ brew install postgresql
$ postgres -D /usr/local/var/postgres  // start the server

new terminal window

$ createdb `mydb`
$ psql   // verify that you can connect to postgresql

The initial schema will be generated and populated using Flywaydb when the service starts.

Staring the service locally:

$ git clone https://github.com/altfatterz/chuck-norris-facts
$ cd chuck-norris-facts
$ ./gradlew clean build  // builds and runs the tests
$ java -jar build/libs/chuck-norris-facts-0.0.1-SNAPSHOT.jar --spring.profiles.active=postgres

in a new terminal

$ curl localhost:8080  // get a random chuck norris fact
{  
   "fact":"the movie 'Aliens vs Predators' was orginally supposed to be 'Aliens and Predators vs Chuck Norris' but that movie only lasted 8 seconds."
}

Follow the blog post: http://zoltanaltfatter.com/2016/04/16/trying-out-spring-boot-1.4.0-new-features-and-enhancements/

chuck-norris-facts's People

Contributors

altfatterz avatar

Watchers

James Cloos avatar

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.