Giter Club home page Giter Club logo

web-service-template's Introduction

Minimal web service template

An opinionated Boot template for minimal web services. See boot-new.

Usage

Install a snapshot of the template into your local maven repository:

boot build

Then create a project based on the template:

boot -d seancorfield/boot-new new -t web-service -n <name> -a <port> -S

Here -S indicates using the snapshot version. Replace the name of your application in kebab-case for <name> and the TCP port for <port>, e.g.

boot -d seancorfield/boot-new new -t web-service -n hello-world -a 8001 -S

This creates a functional Boot project. Executing its run task starts a server listening on the specified port with endpoints:

  • /version Returns the version.
  • /api-docs Renders the Swagger API specification.
  • /swagger.json Returns the raw Swagger API specification.

License

Copyright © 2017 Bart Frenk.

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

web-service-template's People

Contributors

bartfrenk avatar

Watchers

James Cloos avatar  avatar

web-service-template's Issues

Unable to create a new webservice

Tried creating a new project as per the readme using the below command,

boot -d boot/boot-new new -t web-service -n hello-world -a 8001 -S

The project creation failed and got the below error,

Could not load template, failed with: Failed to collect dependencies at web-service:lein-template:jar:(0.0.0,)
java.lang.Thread.run Thread.java: 748
java.util.concurrent.ThreadPoolExecutor$Worker.run ThreadPoolExecutor.java: 624
java.util.concurrent.ThreadPoolExecutor.runWorker ThreadPoolExecutor.java: 1149
java.util.concurrent.FutureTask.run FutureTask.java: 266
...
clojure.core/binding-conveyor-fn/fn core.clj: 1938
boot.core/boot/fn core.clj: 1031
boot.core/run-tasks core.clj: 1022
boot.new/eval3024/fn/fn/fn new.clj: 43
...
boot.new-helpers/create new_helpers.clj: 118
boot.new-helpers/create* new_helpers.clj: 105
boot.new-helpers/resolve-template new_helpers.clj: 71
boot.new-helpers/resolve-template/fn new_helpers.clj: 74
boot.new-helpers/resolve-remote-template new_helpers.clj: 65
boot.App$Exit: 1
clojure.lang.ExceptionInfo: 1

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.