Skip to content

37coins/37coins-boilerplate

Repository files navigation

#37coins Boilerplate

This project got renamed from RestNucleus Boilerplate to 37coins-boilerplate. All imports are still the old.

Introduction:

RestNucleus Boilerplate is a Java stack of frameworks to easily create RESTful services on almost any datastore. Like Dropwizard it is

a little bit of opinionated glue code which bangs together a set of libraries which have historically not sucked.

The stack is different to Dropwizard, as it is composed of:

  • JSR 311, an API for RESTful Web Services, implemented by Jersey, an framework for Java.
  • JDO 3.0, implemented by Datanucleus, a flexibile API and datastore.

I found myself using these always same libraries to create RESTful services for different kind of project and pratforms. I have assembled this stack of libraries into a stub to be easily extended, tested locally and deployed to Tomcat, AWS Beanstalk, and GAE. Maybe someone might prefer this pure-java aproach to the many opinionated frameworks out there.

Compile and run:

  1. Install maven

  2. Compile:

    • mvn clean install
  3. Start local development environment

    • cd RestNucleusBoilerplate/rest-nucleus-sample
    • mvn jetty:run
  4. Open your browser at http://localhost:8080/

Maven Dependency:

<dependencies>
  ...
  <dependency>
    <groupId>org.restnucleus</groupId>
    <artifactId>rest-nucleus-common</artifactId>
    <version>0.2.6</version>
  </dependency>
  <dependency>
    <groupId>org.restnucleus</groupId>
    <artifactId>rest-nucleus-test</artifactId>
    <version>0.2.6</version>
    <scope>test</scope>
  </dependency>
  ...
</dependencies>

Help:

Reach out for me on twitter: @johba

License:

Copyright 2014 Johann Barbie

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

A restfull backend with flexible persistance layer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published