Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/degree9/featherscript
A FeathersJS compatibility layer for ClojureScript.
https://github.com/degree9/featherscript
clojure clojurescript feathers feathersjs
Last synced: 3 months ago
JSON representation
A FeathersJS compatibility layer for ClojureScript.
- Host: GitHub
- URL: https://github.com/degree9/featherscript
- Owner: degree9
- License: mit
- Created: 2016-10-22T17:56:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-06-08T18:41:01.000Z (over 4 years ago)
- Last Synced: 2024-11-14T23:04:11.802Z (3 months ago)
- Topics: clojure, clojurescript, feathers, feathersjs
- Language: Clojure
- Homepage:
- Size: 136 KB
- Stars: 8
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[![Clojars Project](https://img.shields.io/clojars/v/degree9/featherscript.svg)](https://clojars.org/degree9/featherscript) [![Downloads](https://versions.deps.co/degree9/featherscript/downloads.svg)](https://versions.deps.co/degree9/featherscript)
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](https://docs.feathersjs.com/api/application.html) 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
---
![]()
Support this and other open-source projects on Patreon!---