Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Microservices with Clojure

You're reading from  Microservices with Clojure

Product type Book
Published in Jan 2018
Publisher Packt
ISBN-13 9781788622240
Pages 336 pages
Edition 1st Edition
Languages
Author (1):
Anuj Kumar Anuj Kumar
Profile icon Anuj Kumar
Toc

Table of Contents (18) Chapters close

Title Page
Dedication
Packt Upsell
Contributors
Preface
1. Monolithic Versus Microservices 2. Microservices Architecture 3. Microservices for Helping Hands Application 4. Development Environment 5. REST APIs for Microservices 6. Introduction to Pedestal 7. Achieving Immutability with Datomic 8. Building Microservices for Helping Hands 9. Configuring Microservices 10. Event-Driven Patterns for Microservices 11. Deploying and Monitoring Secured Microservices 1. Other Books You May Enjoy Index

Creating a Pedestal service


Pedestal provides a Leiningen (https://leiningen.org/) template named pedestal-service to create a new project with the required dependencies and directory layout for a Pedestal service. To create a new project using the template, use the lein command with the template name and a project name as shown here:

# Create a new project 'pedestal-play' with template 'pedestal-service'
% lein new pedestal-service pedestal-play
Retrieving pedestal-service/lein-template/0.5.3/lein-template-0.5.3.pom from clojars
Retrieving pedestal-service/lein-template/0.5.3/lein-template-0.5.3.jar from clojars
Generating a pedestal-service application called pedestal-play.

The lein command will create a new directory with the specified project name and add all the required dependencies to the project.clj file. It will also initialize the server.clj and service.clj files with the code template for a sample Pedestal service. The created project directory tree should look like the one shown...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime