kevwil / RestExpress-Scaffold

Rails-inspired kick-start or scaffolding to create new RestExpress projects quickly.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RestExpress-Scaffold

Scaffolding projects that are used to generate Maven archetypes for creating new RestExpress projects quickly.

As this projects are used as a template to create the archetypes at https://github.com/RestExpress/RestExpress-Archetype it's better to go there if you want to see them in action and find out how to quickly create a new RestExpress project.

The following project archetypes exist:

  • restexpress-minimal - a minimal RestExpress server with no persistence back-end. Useful for compute-only services or service aggregation.
  • restexpress-mongodb - a full-up project with persistence in MongoDB and asynchronous cascade-delete support via Domain Eventing.

Please note that these projects often utilize a Maven snapshot repository, so please include the following in your ~/.m2/settings.xml file:

<profiles>
  <profile>
     <id>allow-snapshots</id>
        <activation><activeByDefault>true</activeByDefault></activation>
     <repositories>
       <repository>
         <id>snapshots-repo</id>
         <url>https://oss.sonatype.org/content/repositories/snapshots</url>
         <releases><enabled>false</enabled></releases>
         <snapshots><enabled>true</enabled></snapshots>
       </repository>
     </repositories>
   </profile>
</profiles>

Generating Archetypes

To generate each archetype, use the ./scripts/create-archetype.sh shell script. For example:

cd minimal
../scripts/create-archetype.sh
cd mongodb
../scripts/create-archetype.sh

About

Rails-inspired kick-start or scaffolding to create new RestExpress projects quickly.


Languages

Language:Java 98.7%Language:Shell 1.3%