https://github.com/deniaz/express-radical
Simple, opinionated RAD middleware for express.
https://github.com/deniaz/express-radical
api express json-schema rad rest
Last synced: 27 days ago
JSON representation
Simple, opinionated RAD middleware for express.
- Host: GitHub
- URL: https://github.com/deniaz/express-radical
- Owner: deniaz
- License: mit
- Created: 2017-02-08T06:54:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-22T12:24:44.000Z (over 7 years ago)
- Last Synced: 2025-05-04T18:17:15.647Z (27 days ago)
- Topics: api, express, json-schema, rad, rest
- Language: JavaScript
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Radical
Simple, opinionated RAD middleware for express.Radical builds a RESTful API on top of express, based on your JSON Schemas.
Different drivers for data storage are available (In-Memory, ~~Mongo~~, ~~Redis~~, ~~Postgres~~).Rather than building your mock API time and time again, just throw some schemas at Radical
and let it do its magic.*Batches*
* Installation
* Usage
* Options
* License
* Author## Installation
```
npm install express-radical
```## Usage
```
const express = require('express')
const radical = require('express-radical')const app = radical(express(), 'path/to/schemas')
app.listen(process.env.PORT || 8080, () => console.log(`(Radical) express listening on *:${process.env.PORT || 8080}`)
```
## Features
* Automatically routes `GET`, `POST`, `PUT`, `PATCH` and `DELETE` verbs
* When creating a resource, the JSON payload will be validated against your schema## Options
* Path to schemas
* single schemas## License
[MIT License](https://opensource.org/licenses/MIT)## Author
[Robert Vogt](https://twitter.com/_deniaz)