lykmapipo / predefine Goto Github PK
View Code? Open in Web Editor NEWA representation of stored and retrieved information that does not qualify to belongs to their own domain model.
License: MIT License
A representation of stored and retrieved information that does not qualify to belongs to their own domain model.
License: MIT License
This can adapt some of good design standards from:
Required
query
, paths
, headers
and body
as optionsi.e
beforeSave: Function,
afterSave: Function,
beforeUpdate: Function,
afterUpdate: Function,
beforeDelete: Function,
afterDelete: Function
prefix: String
suffix: String
Required
query
, paths
, headers
and body
as optionsThis will allow removing namespace and bucket with the reference to type as well as define schema
{
name: String, //e.g Category
bucket: String, //e.g categories
schema: Object // valid JSON Schema
}
i.e
get(...hooks: Function)
post(...hooks: Function)
getById(...hooks: Function)
put(...hooks: Function)
patch(...hooks: Function)
delete(...hooks: Function)
To Be Supported:
- application/json
- application/geo+json
- application/topo+json
- text/csv
{
tags: [Predefine],
flags: [Predefine],
keywords: [Predefine]
}
Motivation
{
plugins: ['mongoose-hidden'],
schema: { label: { type: String } }
}
Motivation:
{
files: {
icon: Image,
avatar: Image
...
}
}
Motivation:
import {FileTypes} from '@lykmapipo/file';
...
{
icon: FileTypes.Image
}
This will allow mapping /v1/predefines/categories
to /v1/objects/categories
Motivation
strings
, numbers
, booleans
, dates
to be variable schemasproperties
to store rest of datai.e
{
properties: ...{key: String, value: Mixed}
geo: { centroid: Point, geometry: Geometry},
flags: ...{ key: String, value: Boolean},
sorts: ...{ key: String, value: Number},
timestamps: ...{ key: String, value: Boolean},
relations: ...{ key: String, value: ObjectId, ref: String},
schema: JSONSchema
}
Motivation
const transform = data => data;
const criteria = (data, done) => done();
seedCategory(data, { transform, criteria });
seedCategory(data, criteria, [...transformers], done);
Source
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.