3.4.1 • Published 7 years ago

pancake v3.4.1

Weekly downloads
85
License
-
Repository
github
Last release
7 years ago

Pancake

NPM version Build status Dependency Status Downloads

Build your RESTFul service by writing document not code.

Usage

$ pancake-cli [path/to/your/document] -o ./models

What's PancakeD

Pancake is mostly for developing a model system for the Node.js platform, so it of course contains the ECMAScript's built-in types as:

  • Number
  • String
  • Object
  • Boolean

Pancake also owns the following features with love to build the all things:

  • metatype: the metatype has the ability to make types.
  • embedable: this type of models are not real for providing the RESTFul API, which is only used for presenting a data structure in other models.
  • models: Every document may have a MODELS section which will be used for generating JSON that'd be accepted by neaty or other frameworks.

Get started with pancakeD

.pancakerc

The .pancakerc is a JSON file which lets us to define:

  • which documents should be included into the model building.
  • the output directory

document structure

Every document basically is consists of the following sections:

  • RECOMMENDED OVERVIEW options: namely the top of this document that we define AUTHOR, TITLE and others, this is recommended content even if the pancake builder doesn't take this into.
  • a RECOMMENDED top level headline named STATUS OF THIS DOCUMENT, that we will read the content there to get the document/specification status.
  • a RECOMMENDED top level headline named METATYPE, that we will read it to generate meta types dynamically.
  • a RECOMMENDED top level headline named EMBEDABLE, that we are using it to generate the embedable model.
  • a RECOMMENDED top level headline named MODELS that we are using to build the models.

Pancake Ecosystem

  • weflex/pancake-agent an agent library to execute the PTC(Pancake Target Code), which is based on loopback
  • weflex/pancake-sdk-javascript The pancake SDK for JavaScript builder, this tool is a library and CLI to let you build JavaScript library to connect your data store at browser-side.

Installation

npm install pancake -g

License

MIT @ WeFlex, Inc.

3.4.1

7 years ago

3.4.0

8 years ago

3.3.6

8 years ago

3.3.5

8 years ago

3.3.4

8 years ago

3.3.3

8 years ago

3.3.2

8 years ago

3.3.1

8 years ago

3.3.0

8 years ago

3.2.0

8 years ago

3.1.2

8 years ago

3.1.1

8 years ago

3.1.0

8 years ago

3.0.2

8 years ago

3.0.1

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

0.0.10

10 years ago

0.0.8

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago