Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codeofnode/json2server
Provide a json to ready a server. It has routes, validations and more.
https://github.com/codeofnode/json2server
json nodejs purenode restful server
Last synced: 23 days ago
JSON representation
Provide a json to ready a server. It has routes, validations and more.
- Host: GitHub
- URL: https://github.com/codeofnode/json2server
- Owner: codeofnode
- Created: 2017-04-02T09:52:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-05T10:42:57.000Z (about 1 year ago)
- Last Synced: 2024-11-17T13:11:56.187Z (about 1 month ago)
- Topics: json, nodejs, purenode, restful, server
- Language: JavaScript
- Size: 122 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# json2server
> Provide a json to ready a server. It has routes, validations and more.
## Why
- Make code structure simple and highly modular
- Anyone can read and understand the flow control of server at high level.
- High level configurations and yet fully customizable
- Variable replacement at init and also at runtime
- Routes setup within json## Install
```
$ npm install [-g] json2server
```## Usage
### As global module
```
$ npm install -g json2server
$ json2server // run instant server in current directory
$ json2server --outfile=true // to build and generate a server file
$ json2server --browser=true // to build and generate a client file
```## more options
[See this file](https://github.com/codeofnode/json2server/blob/master/internal_methods/extractArgs.js)## Documentation
[Documentation about server.json/client and points to keep in mind](https://github.com/codeofnode/json2server/blob/master/DOC.md)
## License
MIT © [Ramesh Kumar](codeofnode-at-the-rate-gmail-dot-com)