Skip to content

Instantly share code, notes, and snippets.

@burn2delete
Last active February 9, 2017 05:05
Show Gist options
  • Save burn2delete/4abed04b9dbbff1be493f539eed84bd1 to your computer and use it in GitHub Desktop.
Save burn2delete/4abed04b9dbbff1be493f539eed84bd1 to your computer and use it in GitHub Desktop.
CLJS/Feathers.js Server
(ns app.server
(:require [feathers.app :as feathers]
[app.services :as services]))
(enable-console-print!)
(def app (feathers/feathers))
(def public (str js/__dirname "/../../"))
(feathers/configuration app public)
(-> app
feathers/compress
feathers/cors
(feathers/favicon (str public "favicon.png"))
(feathers/static public)
feathers/body-parser
feathers/hooks
feathers/rest
feathers/socketio
feathers/authentication
services/users
services/messages)
(defn- main []
(feathers/listen app "8080"))
(defn init []
(set! *main-cli-fn* main))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment