GithubHelp home page GithubHelp logo

talk-sgce-2015's Introduction

Simple Spring Boot Rest Template

This is a simple project using Spring Boot REST API it is highly opinionated, we chose to use:

  • Spring Boot
  • Jersey
  • OAuth 2
  • Postgresql
  • GORM
  • RAML contracts with code generation
  • Java 8

It should be pretty easy to change the database, or OAuth security. We would recommend against it.

Start writing your code

Always define your contract first, you can do it by editing the raml/src/index.raml The body of the requests and the responses is defined by json schemas, they are also in the raml/src folder.

Generating code

Code is generated using node, but we download that for you if you don't have it, just run:

./gradlew :raml:npmInstall :raml:installGulp :raml:build

Helper scripts

There are a couple of scripts that you can use for help:

  • ./fullBuild It generates everything

talk-sgce-2015's People

Contributors

domix avatar

Stargazers

Iván López avatar

Watchers

 avatar  avatar

talk-sgce-2015's Issues

Is the config-server missing?

When I start the docker containers or just a Spring Boot app I see the following error message in the log:

2015-07-11 17:08:09.528 ERROR 27423 --- [           main] c.c.c.ConfigServicePropertySourceLocator : Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/bootstrap/default/master"

It seems that some component is missing but I'm not really sure if I need an Eureka server or another one.

Are you sure that you included all the elements in the repo?

Regards, Iván.

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.