Questions tagged [pedestal]

An open source tool set for building web applications in Clojure

Pedestal is a Clojure framework that comes ready-made for developers to solve difficult problems . In a single language, from client to server and back. By providing the leading Clojure web development libraries, Pedestal gives developer the building blocks for robust web applications.

Pedestal gives developers a solid foundation to build highly scalable backend services.

Pedestal is an open framework that gives Clojure developers well-designed libraries to save time and effort.

58 questions
1
vote
0 answers

Routing image certain types in pedestal.io

I am creating routes for: / /*.jpg /*.png in pedestal.io. My bad code, that returns boot.user=> clojure.lang.ExceptionInfo: route conflict, is this (def routes (route/expand-routes #{ ["/" :get [coerce-body content-neg-intc…
trzczy
  • 1,325
  • 2
  • 18
  • 43
1
vote
1 answer

Error when importing Lacinia into Clojure project

The Boot REPL returns this error java.lang.Exception: No namespace: com.walmartlabs.lacinia.internal-utils clojure.lang.Compiler$CompilerException: java.lang.Exception: No namespace: com.walmartlabs.lacinia.internal-utils,…
1
vote
1 answer

Tomcat 7 fails to deploy on EC2 instance due to Exceptions

I have built my pedestal app according to following https://github.com/pedestal/pedestal/blob/master/guides/documentation/service-war-deployment.md and then I upload the .war file and deploy it. however, when I ssh in to the ec2 instance I found…
user299709
  • 4,922
  • 10
  • 56
  • 88
1
vote
1 answer

Clojure - combine pedestal routes

How do I combine routes in Pedestal ? (defroutes api-routes [...]) (defroutes site-routes [...]) (combine-routes api-routes site-routes) ;; should be a valid route as well Note : This is a similar question as Combining routes in Compojure, but for…
nha
  • 17,623
  • 13
  • 87
  • 133
1
vote
1 answer

Sending email with postal from heroku fires strange exception

I am trying to send email from Pedestal application hosted on Heroku using Postal. Email should be send in POST /send_email handler. But it fails with: clojure.lang.ExceptionInfo: Interceptor Exception: No implementation of method:…
Kirill Salykin
  • 681
  • 6
  • 19
1
vote
1 answer

error while using immutant server to access page from browser

$ lein new pedestal-service peddy and then add following file to immutant folder (ns immutant.init (:require [immutant.web :as web] [io.pedestal.http :as http] [peddy.service :as app])) (web/start-servlet "/"…
piyushmandovra
  • 4,219
  • 3
  • 19
  • 30
1
vote
1 answer

When use Pedestal, Hoplon, Bidi and Route-one?

I am trying figure out which one (Pedestal, Hoplon, Bidi) should i use? I didn't find any good article in the Internet which help me with this choice. From https://github.com/juxt/bidi i can read Pedestal is isomorphic, but Bidi is also cljs. What…
kabra
  • 1,306
  • 1
  • 17
  • 24
1
vote
1 answer

How does one configure sibling Pedestal routes so that all are accessible when using :constraints?

I am creating a toy Pedestal service intended to have the following resources: / /movies /movies/today /movies/:iso-date where :iso-date matches ####-##-## The constraint for the last route is defined with the following snippet: ^:constraints…
crimeminister
  • 1,339
  • 9
  • 8
1
vote
1 answer

Clojure Light Table client-server approach riddle

How can I set it up, so that I can use Light Table on the Mac, connected to a Ubuntu-hosted nREPL, and create a new program/project.clj? Can anybody help me to understand what my approach should be, and where I'm going wrong? I have a Ubuntu…
Dvious
  • 23
  • 4
1
vote
1 answer

How to emit a transform-enable msg from a continue

I'm about 2 months into a clojure/pedestal project and am just now learning about continues and am attempting to use one to enable or disable a click event on a button. The idea is that my report has a previous and next button and I want to enable…
WesleyJohnson
  • 1,538
  • 1
  • 16
  • 30
1
vote
1 answer

Finding a namespace from lein repl

EDIT : SOLVED My issue was coming from two things -- I had a syntax error in the defmacro somewhere. I deleted it and wrote a small function that I could then access (only after restarting the repl). The big second-issue was that I was ignorant to…
Catalyst
  • 3,143
  • 16
  • 20
1
vote
1 answer

Can't get generative.test working with pedestal.io

Here is my recipe for failure: lein new pedestal-app generative-app I then modify project.clj to be the following: (defproject generative-app "0.0.1-SNAPSHOT" :description "FIXME: write description" :repl-options {:init (use 'dev)} …
Stephen Cagle
  • 14,124
  • 16
  • 55
  • 86
1
vote
1 answer

Use pedestal in usual http way request-response

I'm newbie in pedestal, please advise. AFAIK, pedestal is service + js application (browser based). Communication through keep alive connection (long), render on client side. Is it possible to use pedestal in the usual web way -…
Kirill Salykin
  • 681
  • 6
  • 19
0
votes
1 answer

Runtime Exception during Pedestal Routing

I'm using routes like so in my Pedestal webapp: (def routes [[["/" ^:interceptors [(body-params/body-params) middlewares/params params/keyword-params coerce-body…
0
votes
0 answers

invalid read syntax: "#"

This is almost character for character what's on the pedestal api front page. I'm just trying to get everything verified to see that it works but it's not. What's wrong with my # here? EDIT: I'm an idiot. Emacs lets you do crazy things and I…
Sirgeorge
  • 127
  • 7