This is a beta version.
Prata
Prata allows you to generate and/edit data in 3 easy steps:
- Add a schema following the json-schema.org standards.
- Edit data based on this structure via a user friendly or code editor.
- You can now GET, POST, PUT, PATCH and DELETE your data from anywhere.
It is a Nodejs application based on typicode/json-server and jdorn/json-editor.
Therefore we advice you to read the documentation of those two projects before getting started.
Installation
You need Nodejs installed on your computer/server.
$ npm install
to install all dependencies required by the project.
$ npm start
to run a webserver at http://localhost:3000/.
Development
$ npm install -g nodemon
to restart the server on file change.
$ npm install
to install all dependencies.
$ npm run dev
to build the project, start the server and watch/rebuild HTML, CSS and JS.
Under the hood, we're using:
- jshint and browserify to lint and manage client-side JS.
- LESS to pre-process CSS.
- Metalsmith to generate HTML from Handlebars templates.
Libraries
CSS
JS
- jQuery latest and Bootstrap because why not.
- CodeMirror to edit schema and data.
- Faker to generate fake data used via Handlebars helpers.
- Handlebars as a json-editor dependency to populate fields with dynamic values.
- jsonlint to lint json before posting to server.
- json-editor to provide a user friendly interface to edit JSON.