Skip to content

A FeathersJS compatibility layer for ClojureScript.

License

Notifications You must be signed in to change notification settings

degree9/featherscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

d9featherscript

Clojars Project Downloads

ClojureScript layer around Feathers.js.



D9 Featherscript is developed and maintained by Degree9


Feathers Application

The feathers.application namespace is the starting point for all feathers apps.

(ns app.server
  (:require [feathers.application :as feathers]))

(def app (feathers/app))

Additionally all of the methods of the feathers app object can be called from the feathers.application namespace. See the API Docs for a full list of methods.

Feathers Services

Services provide the main application logic for feathers apps, they are JS objects that implement request methods. Service methods are CRUD methods that can optionally be implemented by a service.

(ns app.services)

(defn my-service []
  (reify
    Object
    (find   [this params] ...)
    (get    [this id params] ...)
    (create [this data params] ...)
    (update [this id data params] ...)
    (patch  [this id data params] ...)
    (remove [this id params] ...)))

Feathers Hooks

Feathers Events


Patreon
Support this and other open-source projects on Patreon!


Releases

No releases published

Sponsor this project

Packages

No packages published