0.5.7 • Published 8 years ago

generic_rest_server v0.5.7

Weekly downloads
85
License
GNU-3.0+
Repository
github
Last release
8 years ago

Generic Rest Server

An instant deployable REST and Socket server with authorization and hooks available
> npm install -g generic_rest_server
> generic-rest-server
> curl --data "afield=helloworld" http://localhost:1828/sample_collection
> curl http://localhost:1828/sample_collection

This is a generic REST server that will give and take any information thrown at it. I've built this for prototyping apps, although if security isn't a major concern, then I can't see a reason not to use it on simple production sites ie. a personal blog. The server runs on Node and the data is stored in MongoDB. Everything can be configured using a config file (Including function hooks) you pass as the only parameter to the executable. See the config.js in source for what can be set, and the format for setting collections and groups.

> generic-rest-server ~/myconfig.js

The urls are all "/:collection" with the data determining what to create, change or query. In the case of a "PUT" edit, the _id will be used to edit it.

The server supports both authorization and file upload/download.

You can add files by "PUT"ing to "/__file/:folder" and returned will be the object: {url: , type: }

Todo: an explanation of the configs and how to set authorization in configs in this README Also, I think you need to install mongoDB before this well work... I should look into how to have this app install mongoDB for the user.

0.5.7

8 years ago

0.5.6

8 years ago

0.5.5

8 years ago

0.5.4

8 years ago

0.5.3

8 years ago

0.5.2

8 years ago

0.5.1

8 years ago

0.5.0

8 years ago

0.4.0

8 years ago

0.3.26

8 years ago

0.3.25

8 years ago

0.3.24

8 years ago

0.3.23

8 years ago

0.3.22

8 years ago

0.3.21

8 years ago

0.3.20

8 years ago

0.3.19

8 years ago

0.3.18

8 years ago

0.3.17

8 years ago

0.3.16

8 years ago

0.3.15

8 years ago

0.3.14

8 years ago

0.3.13

8 years ago

0.3.12

8 years ago

0.3.11

8 years ago

0.3.10

8 years ago

0.3.9

8 years ago

0.3.8

9 years ago

0.3.7

9 years ago

0.3.6

9 years ago

0.3.5

9 years ago

0.3.4

9 years ago

0.3.3

9 years ago

0.3.2

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.4

9 years ago

0.2.3

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago