Last active
February 9, 2017 05:05
-
-
Save burn2delete/4abed04b9dbbff1be493f539eed84bd1 to your computer and use it in GitHub Desktop.
CLJS/Feathers.js Server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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