{"_id":"@cloud-node/server","_rev":"12-f5ca1a3bbba8900864ea86b8624c1b07","name":"@cloud-node/server","dist-tags":{"alpha":"0.0.6","latest":"0.1.6-alpha"},"versions":{"0.0.1-alpha":{"name":"@cloud-node/server","version":"0.0.1-alpha","description":" Cloud-node - web framework build on top of ExpressJS","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/alexmarch/cloud-node.git"},"keywords":[],"author":{"name":"Aleksander Marchenko","email":"maappdev@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/alexmarch/cloud-node/issues"},"homepage":"https://github.com/alexmarch/cloud-node#readme","dependencies":{"body-parser":"^1.18.2","compression":"^1.7.2","cors":"^2.8.4","debug":"^3.1.0","express":"^4.16.2","morgan":"^1.9.0","node-yaml":"^3.1.1","pm2":"^2.10.1"},"gitHead":"9b5b210b96d0874b9e1edc8cb6ad60f232c6aca5","_id":"@cloud-node/server@0.0.1-alpha","_npmVersion":"5.7.1","_nodeVersion":"8.9.4","_npmUser":{"name":"alexmarch","email":"maappdev@gmail.com"},"dist":{"integrity":"sha512-NJZSQUILA7yLeKPWRP6S7ST/VZ906nC8a7yWY2WTr+DiTIXGSF1l6fkG1i3nobHfiM+Ojg3XntC2ZvcH5nw7Dw==","shasum":"122140b4ff327ab8ae93b08894c3cce78f3daa49","tarball":"https://registry.npmjs.org/@cloud-node/server/-/server-0.0.1-alpha.tgz","fileCount":13,"unpackedSize":11759,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICSZLYx9AXLHtuST2hf8u158mmQHGmOcI4GCdt+HPD4WAiBV3hNbGRZkxfC7IEEP6qLuX3086Un/6Ub2exGkIDwr+Q=="}]},"maintainers":[{"name":"alexmarch","email":"maappdev@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/server_0.0.1-alpha_1520760293253_0.2839788474302547"},"_hasShrinkwrap":false},"0.0.2-alpha":{"name":"@cloud-node/server","version":"0.0.2-alpha","description":" Cloud-node - web framework build on top of ExpressJS","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/alexmarch/cloud-node.git"},"keywords":[],"author":{"name":"Aleksander Marchenko","email":"maappdev@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/alexmarch/cloud-node/issues"},"homepage":"https://github.com/alexmarch/cloud-node#readme","dependencies":{"body-parser":"^1.18.2","compression":"^1.7.2","cors":"^2.8.4","debug":"^3.1.0","express":"^4.16.2","morgan":"^1.9.0","node-yaml":"^3.1.1","pm2":"^2.10.1"},"readme":"# cloud-node-server\n### Cloud-node - web framework build on top of ExpressJS\n![Logo](https://rawgit.com/alexmarch/cloud-node/master/assets/logo-v0.1.svg)\n\n## Versions\nNode v8.9.4 (npm v5.7.1)\n\n## Install\n```bash\n  npm install @cloud-node/server\n```\n","readmeFilename":"README.md","gitHead":"950d98d31ace9df47ab96a9fb0228b45f616f223","_id":"@cloud-node/server@0.0.2-alpha","_npmVersion":"5.7.1","_nodeVersion":"8.9.4","_npmUser":{"name":"alexmarch","email":"maappdev@gmail.com"},"dist":{"integrity":"sha512-/46c3wQiksPhqWcQSXYEgDc8AaI8v5fCcT6qJcSZhahvcqVVJODtYm5yzYxotdQDMtTaQ+/vqYjnPuK0kdrzHg==","shasum":"efb6952a6e0b7d8104ab70a133ae4f4833b54d26","tarball":"https://registry.npmjs.org/@cloud-node/server/-/server-0.0.2-alpha.tgz","fileCount":13,"unpackedSize":11754,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPQRgHb6rseRFGK2uzIFIQ66CHqgpclhZyC0owM96d/gIgKroKzWehABGFTlikjo0sw5jrHxLnkhm2UWikMi/sw0c="}]},"maintainers":[{"name":"alexmarch","email":"maappdev@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/server_0.0.2-alpha_1520761495453_0.717615313740557"},"_hasShrinkwrap":false},"0.0.2":{"name":"@cloud-node/server","version":"0.0.2","description":" Cloud-node - web framework build on top of ExpressJS","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/alexmarch/cloud-node.git"},"keywords":[],"author":{"name":"Aleksander Marchenko","email":"maappdev@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/alexmarch/cloud-node/issues"},"homepage":"https://github.com/alexmarch/cloud-node#readme","dependencies":{"body-parser":"^1.18.2","compression":"^1.7.2","cors":"^2.8.4","debug":"^3.1.0","express":"^4.16.2","morgan":"^1.9.0","node-yaml":"^3.1.1","pm2":"^2.10.1"},"readme":"# cloud-node-server\n### Cloud-node - web framework build on top of ExpressJS\n![Logo](https://rawgit.com/alexmarch/cloud-node/master/assets/logo-v0.1.svg)\n\n## Versions\nNode v8.9.4 (npm v5.7.1)\n\n## Install\n```bash\n  npm install @cloud-node/server\n```\n","readmeFilename":"README.md","gitHead":"425973c3f21286a6c9eec660a30926b66df6853b","_id":"@cloud-node/server@0.0.2","_npmVersion":"5.7.1","_nodeVersion":"8.9.4","_npmUser":{"name":"alexmarch","email":"maappdev@gmail.com"},"dist":{"integrity":"sha512-yC2Y2lOHRvSkpgfvTVl6+o6J151p79o4U84lDa5xz0/DbPiznuwmZXO97X+a9iXfn7I25E2pTFPy9RimwlRoFA==","shasum":"bdf6a79cc75f1b0cd759586deea2393d4ebf0568","tarball":"https://registry.npmjs.org/@cloud-node/server/-/server-0.0.2.tgz","fileCount":13,"unpackedSize":11748,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDq69mDrmQEQxHD2w6GG/Vn8GQvYBJkVJIH5Za6UDc61gIhALFg+bgqe4mxAcpIgySlWRjTM0w9CWy5MYJJL7meURU9"}]},"maintainers":[{"name":"alexmarch","email":"maappdev@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/server_0.0.2_1520762278329_0.7097102944296951"},"_hasShrinkwrap":false},"0.0.3":{"name":"@cloud-node/server","version":"0.0.3","description":" Cloud-node - web framework build on top of ExpressJS","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/alexmarch/cloud-node.git"},"keywords":[],"author":{"name":"Aleksander Marchenko","email":"maappdev@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/alexmarch/cloud-node/issues"},"homepage":"https://github.com/alexmarch/cloud-node#readme","dependencies":{"body-parser":"^1.18.2","compression":"^1.7.2","cors":"^2.8.4","debug":"^3.1.0","express":"^4.16.2","morgan":"^1.9.0","node-yaml":"^3.1.1","pm2":"^2.10.1"},"gitHead":"b768fd2efc85f7e9f51e9a64758a95e0dbdb39e8","_id":"@cloud-node/server@0.0.3","_npmVersion":"5.7.1","_nodeVersion":"8.9.4","_npmUser":{"name":"alexmarch","email":"maappdev@gmail.com"},"dist":{"integrity":"sha512-WhBsmlR2AyYtHWr7jsNdYTCpng0D359FHdWePnPCrXgTe/FPoA8TLqYhuGuXci7HNCWfGKbkoI3SVdwIe7TESA==","shasum":"7730ea6368ee0e202fc4b54336cf0aea1b86e20b","tarball":"https://registry.npmjs.org/@cloud-node/server/-/server-0.0.3.tgz","fileCount":13,"unpackedSize":11748,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAmSGgB7gWXl0QXwOWegdlvVIKHQ7nlX7gSQGihxq7s2AiEAxMZRxAMjbbRObpkMMHYCV5ioycH9h/FZf1f+new89Bg="}]},"maintainers":[{"name":"alexmarch","email":"maappdev@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/server_0.0.3_1520762398725_0.8735268786631305"},"_hasShrinkwrap":false},"0.0.4":{"name":"@cloud-node/server","version":"0.0.4","description":" Cloud-node - web framework build on top of ExpressJS","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/alexmarch/cloud-node.git"},"keywords":[],"author":{"name":"Aleksander Marchenko","email":"maappdev@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/alexmarch/cloud-node/issues"},"homepage":"https://github.com/alexmarch/cloud-node#readme","dependencies":{"body-parser":"^1.18.2","compression":"^1.7.2","cors":"^2.8.4","debug":"^3.1.0","express":"^4.16.2","morgan":"^1.9.0","node-yaml":"^3.1.1","pm2":"^2.10.1"},"readme":"# cloud-node-server\n### Cloud-node - web framework build on top of ExpressJS\n![Logo](https://rawgit.com/alexmarch/cloud-node/master/assets/logo-v0.1.svg)\n\n## Versions\nNode v8.9.4 (npm v5.7.1)\n\n## Install\n```bash\n  npm install @cloud-node/server\n```\n","readmeFilename":"README.md","gitHead":"72745d7b3c2c376fef2f2d9ba2a50a94053c8ab9","_id":"@cloud-node/server@0.0.4","_npmVersion":"5.7.1","_nodeVersion":"8.9.4","_npmUser":{"name":"alexmarch","email":"maappdev@gmail.com"},"dist":{"integrity":"sha512-bhYEH8HjeZFp4XBZSGA7MKk7Pau8PPLDlq0QadJQLyXleBxVpydeMIwd1idpJtnlWky8WIN10UJ/dZW+sFVtcA==","shasum":"5707b758017abc4013ceea2ef59536bdf0287ab7","tarball":"https://registry.npmjs.org/@cloud-node/server/-/server-0.0.4.tgz","fileCount":13,"unpackedSize":11748,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMEM92QjOOPu/Oj7npODsh+xns+i5x52GGZfaq35QCAwIhAJWsBpdomtegdEVrLN+F2vE1NM6AKvKgATC4kzPBpvzJ"}]},"maintainers":[{"name":"alexmarch","email":"maappdev@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/server_0.0.4_1520762494586_0.32499241704671444"},"_hasShrinkwrap":false},"0.0.4-alpha":{"name":"@cloud-node/server","version":"0.0.4-alpha","description":" Cloud-node - web framework build on top of ExpressJS","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/alexmarch/cloud-node.git"},"keywords":[],"author":{"name":"Aleksander Marchenko","email":"maappdev@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/alexmarch/cloud-node/issues"},"homepage":"https://github.com/alexmarch/cloud-node#readme","dependencies":{"body-parser":"^1.18.2","compression":"^1.7.2","cors":"^2.8.4","debug":"^3.1.0","express":"^4.16.2","morgan":"^1.9.0","node-yaml":"^3.1.1","pm2":"^2.10.1"},"readme":"# cloud-node-server\n### Cloud-node - web framework build on top of ExpressJS\n![Logo](https://rawgit.com/alexmarch/cloud-node/master/assets/logo-v0.1.svg)\n\n## Versions\nNode v8.9.4 (npm v5.7.1)\n\n## Install\n```bash\n  npm install @cloud-node/server\n```\n","readmeFilename":"README.md","gitHead":"72745d7b3c2c376fef2f2d9ba2a50a94053c8ab9","_id":"@cloud-node/server@0.0.4-alpha","_npmVersion":"5.7.1","_nodeVersion":"8.9.4","_npmUser":{"name":"alexmarch","email":"maappdev@gmail.com"},"dist":{"integrity":"sha512-7oWOQZO2fS8+JXQMwAMAcUp+BsoofJgXAYnyJ60FOVmU9oa6ZdFYSVw+OI+uFsv2zYRRyBXeLeoOYSElgoPT1w==","shasum":"7e40d6cd8d4e5020c9408dbb781d7fb00c865722","tarball":"https://registry.npmjs.org/@cloud-node/server/-/server-0.0.4-alpha.tgz","fileCount":14,"unpackedSize":12808,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDaq+8XKoegBLh/uMIx9GNkFstso4uW1DQWOnCWUcJZ+AiEAttnrpcwdvNNG4Gk5OzqJl096ogG9NewPIeQpEOu16+0="}]},"maintainers":[{"name":"alexmarch","email":"maappdev@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/server_0.0.4-alpha_1520763387350_0.04253401170316118"},"_hasShrinkwrap":false},"0.0.5-alpha":{"name":"@cloud-node/server","version":"0.0.5-alpha","description":" Cloud-node - web framework build on top of ExpressJS","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/alexmarch/cloud-node.git"},"keywords":["nodejs","expressjs","api","server"],"author":{"name":"Aleksander Marchenko","email":"maappdev@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/alexmarch/cloud-node/issues"},"homepage":"https://github.com/alexmarch/cloud-node#readme","dependencies":{"body-parser":"^1.18.2","compression":"^1.7.2","cors":"^2.8.4","debug":"^3.1.0","express":"^4.16.2","morgan":"^1.9.0","node-yaml":"^3.1.1","pm2":"^2.10.1"},"readme":"# cloud-node-server\n### Cloud-node - web framework build on top of ExpressJS\n![Logo](https://rawgit.com/alexmarch/cloud-node/master/assets/logo-v0.1.svg)\n\n![npm](https://img.shields.io/npm/l/express.svg)\n![npm](https://img.shields.io/npm/v/npm.svg)\n\nVery powerful framework, that allow you very quick, and simple start develop any API, with just config, without any programming. \n\n## Versions\nNode v8.9.4 (npm v5.7.1)\n\n## Install\n```bash\n  npm install @cloud-node/server@0.0.5-alpha\n```\n\n## Setup\n### Routes\nCreate configuration file for routes **config/routes.yml** with next structure\n```yml\nroutes:\n  - namespace:\n      name: 'apis'\n      resources: # - Resource will provice all RESTful API methods for controller home\n        - home:\n      cloud: # - Endpoint will look like: (GET) /apis/cloud/index\n        - get:\n            action: 'index'\n        - get:\n            as: 'home' # - Endpoint will look like: (GET) /apis/cloud/home\n            controller: 'cloud'\n            action: 'home'\n        - all: # - Endpoint will allow all request methods\n            controller: 'cloud'\n            action: 'all'\n```\n### Polices\nProtect you route with polices, create file **config/polices.js**\n```javascript\n  module.exports = {\n    isAuth: (req, res, next) => ( req.user.isAuth ? next() : next('User not authorized.') )// Checking if user authorized\n  }\n```\n```yaml\n  - get:\n      action: 'index'\n      polices:\n          - 'isAuth'\n          # ...\n```\n### Controllers\nCreate controller file in the application root folder **controllers/cloud.js**\n```javascript\n  module.exports = {\n    index: (req, res) => res.ok('Hi, cloud-node.')\n  }\n```\nroutes configuration\n```yaml\n  - get: # - Endpoint will look like: (GET) /apis/cloud/index/:id\n      as: 'index/:id'\n      controller: 'cloud'\n      action: 'index'\n```\n### Models\n@TODO: - In progress\n\n### Plugins\n@TODO  - In progress\n","readmeFilename":"README.md","gitHead":"3529cbbbc8986838df21d4f377be355ed131e2ae","_id":"@cloud-node/server@0.0.5-alpha","_npmVersion":"5.7.1","_nodeVersion":"8.9.4","_npmUser":{"name":"alexmarch","email":"maappdev@gmail.com"},"dist":{"integrity":"sha512-cHBsLZINqoDdugUNYTZWfX+QkmKGu+DpsD7qchDHtZRPkjA8jtP1Z+3lsSxZfpru24rX3Lm8PzJpzJczRnLbaA==","shasum":"fb146b76604348dae248bfed8e54cd492eb1c484","tarball":"https://registry.npmjs.org/@cloud-node/server/-/server-0.0.5-alpha.tgz","fileCount":14,"unpackedSize":14497,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEPambyXcJDgrRFF4mKVpi9RZQscFqyIBkdbYiEx6kERAiEA9bMpWNJUFptTN7PkmVlx7lr797Kd4zLoY3tYyi0O3cs="}]},"maintainers":[{"name":"alexmarch","email":"maappdev@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/server_0.0.5-alpha_1520766877796_0.2983411011111057"},"_hasShrinkwrap":false},"0.0.5":{"name":"@cloud-node/server","version":"0.0.5","description":" Cloud-node - web framework build on top of ExpressJS","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/alexmarch/cloud-node.git"},"keywords":["nodejs","expressjs","api","server"],"author":{"name":"Aleksander Marchenko","email":"maappdev@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/alexmarch/cloud-node/issues"},"homepage":"https://github.com/alexmarch/cloud-node#readme","dependencies":{"body-parser":"^1.18.2","compression":"^1.7.2","cors":"^2.8.4","debug":"^3.1.0","express":"^4.16.2","morgan":"^1.9.0","node-yaml":"^3.1.1","pm2":"^2.10.1"},"gitHead":"3529cbbbc8986838df21d4f377be355ed131e2ae","_id":"@cloud-node/server@0.0.5","_npmVersion":"5.7.1","_nodeVersion":"8.9.4","_npmUser":{"name":"alexmarch","email":"maappdev@gmail.com"},"dist":{"integrity":"sha512-SAZjBCyGnU+cAFfghwfh8ebxOVGrXXIBCfv7VwzqIUwBTaP5zmqOBDN5E+He73fvlseAYisaxfwhYVFh9dB19Q==","shasum":"389f90cdeeb19aa4949a5eaa216c8914b4db74c2","tarball":"https://registry.npmjs.org/@cloud-node/server/-/server-0.0.5.tgz","fileCount":14,"unpackedSize":14491,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDK9FscoK96lMoPcnVEYfBA4jaIsYWIVnIiel93fmH6WgIgPQOiAjUxb9RWq6dhoGQ/uqHj0n8sW+KGbEtdOnV6IF8="}]},"maintainers":[{"name":"alexmarch","email":"maappdev@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/server_0.0.5_1520767543663_0.7015798133561335"},"_hasShrinkwrap":false},"0.0.6":{"name":"@cloud-node/server","version":"0.0.6","description":" Cloud-node - web framework build on top of ExpressJS","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/alexmarch/cloud-node.git"},"keywords":["nodejs","expressjs","api","server"],"author":{"name":"Aleksander Marchenko","email":"maappdev@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/alexmarch/cloud-node/issues"},"homepage":"https://github.com/alexmarch/cloud-node#readme","dependencies":{"body-parser":"^1.18.2","chalk":"^2.3.2","compression":"^1.7.2","cors":"^2.8.4","debug":"^3.1.0","express":"^4.16.2","morgan":"^1.9.0","node-yaml":"^3.1.1","pm2":"^2.10.1"},"readme":"# cloud-node-server\n### Cloud-node - web framework build on top of ExpressJS\n![Logo](https://rawgit.com/alexmarch/cloud-node/master/assets/logo-v0.1.svg)\n\n![npm](https://img.shields.io/npm/l/express.svg)\n![npm](https://img.shields.io/npm/v/npm.svg)\n\nVery powerful framework, that allow you very quick, and simple start develop any API, with just config, without any programming. \n\n## Versions\nNode v8.9.4 (npm v5.7.1)\n\n## Install\n```bash\n  npm install @cloud-node/server@0.0.5-alpha\n```\n## How to use\n```javascript\n  const { server } = require('@cloud-node/server');\n  server.start({\n    pm2: process.env.NODE_ENV === 'development' ? true : false\n  });\n```\nIf option **pm2** is enabled in console you will see pm2 monitor\n![image](https://i.imgur.com/vXp5hI7.png|100)\n## Setup\n### Routes\nCreate configuration file for routes **config/routes.yml** with next structure\n```yml\nroutes:\n  - namespace:\n      name: 'apis'\n      resources: # - Resource will provice all RESTful API methods for controller home\n        - home:\n      cloud: # - Endpoint will look like: (GET) /apis/cloud/index\n        - get:\n            action: 'index'\n        - get:\n            as: 'home' # - Endpoint will look like: (GET) /apis/cloud/home\n            controller: 'cloud'\n            action: 'home'\n        - all: # - Endpoint will allow all request methods\n            controller: 'cloud'\n            action: 'all'\n```\n### Polices\nProtect you route with polices, create file **config/polices.js**\n```javascript\n  module.exports = {\n    isAuth: (req, res, next) => ( req.user.isAuth ? next() : next('User not authorized.') )// Checking if user authorized\n  }\n```\n```yaml\n  - get:\n      action: 'index'\n      polices:\n          - 'isAuth'\n          # ...\n```\n### Controllers\nCreate controller file in the application root folder **controllers/cloud.js**\n```javascript\n  module.exports = {\n    index: (req, res) => res.ok('Hi, cloud-node.')\n  }\n```\nroutes configuration\n```yaml\n  - get: # - Endpoint will look like: (GET) /apis/cloud/index/:id\n      as: 'index/:id'\n      controller: 'cloud'\n      action: 'index'\n```\n### Models\n@TODO: - In progress\n\n### Plugins\n@TODO  - In progress\n","readmeFilename":"README.md","gitHead":"eb6fe625f302d402598a7eea0c3b42e90fd712fb","_id":"@cloud-node/server@0.0.6","_npmVersion":"5.7.1","_nodeVersion":"8.9.4","_npmUser":{"name":"alexmarch","email":"maappdev@gmail.com"},"dist":{"integrity":"sha512-RNnGeFLGpLwrm48UUvrqBNhoRJNFrZx10wNcNJVBg6JGsqY4fnMVKgS3LrTcMIdbw1dfXees+5tThD7pT9eslA==","shasum":"5bdbe320ce9b8a4a720342fdb3ef5b6d229b12e5","tarball":"https://registry.npmjs.org/@cloud-node/server/-/server-0.0.6.tgz","fileCount":14,"unpackedSize":14911,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHJUO98P4dpW0A3tTir4fi9MS8A8APGuAkSPTtJ8f2x/AiAdpubsxR7bzHLheTiHmWR0PApk1EYBtpGHcFqZah52Mw=="}]},"maintainers":[{"name":"alexmarch","email":"maappdev@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/server_0.0.6_1520783057443_0.3142285674274974"},"_hasShrinkwrap":false},"0.1.6":{"name":"@cloud-node/server","version":"0.1.6","description":" Cloud-node - web framework build on top of ExpressJS","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/alexmarch/cloud-node.git"},"keywords":["nodejs","expressjs","api","server"],"author":{"name":"Aleksander Marchenko","email":"maappdev@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/alexmarch/cloud-node/issues"},"homepage":"https://github.com/alexmarch/cloud-node#readme","dependencies":{"body-parser":"^1.18.2","chalk":"^2.3.2","compression":"^1.7.2","cors":"^2.8.4","debug":"^3.1.0","express":"^4.16.2","morgan":"^1.9.0","node-yaml":"^3.1.1","pm2":"^2.10.1"},"gitHead":"eb6fe625f302d402598a7eea0c3b42e90fd712fb","_id":"@cloud-node/server@0.1.6","_npmVersion":"5.7.1","_nodeVersion":"8.9.4","_npmUser":{"name":"alexmarch","email":"maappdev@gmail.com"},"dist":{"integrity":"sha512-LEk5DZBkIyYPYMHxSfkiveqfkFhw8oGYqtItHYLBVXQfiKzhbo9J+V+pxwkMUa5d38jPU8BHWHQrGFn3lqxs5w==","shasum":"01218758fe5f3a8d0508daebb48a833c0fcb8d25","tarball":"https://registry.npmjs.org/@cloud-node/server/-/server-0.1.6.tgz","fileCount":14,"unpackedSize":14911,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC50yVxdIkXe1rfBVhxnnHVwGm25BXeCkIrbWVOuk0VAgIhAJEqiGuVt+tmNau6G7NqrNxKT3lBUJOOjic9Fbwlt1lQ"}]},"maintainers":[{"name":"alexmarch","email":"maappdev@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/server_0.1.6_1520783808885_0.7863723163025087"},"_hasShrinkwrap":false},"0.1.6-alpha":{"name":"@cloud-node/server","version":"0.1.6-alpha","description":" Cloud-node - web framework build on top of ExpressJS","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/alexmarch/cloud-node.git"},"keywords":["nodejs","expressjs","api","server"],"author":{"name":"Aleksander Marchenko","email":"maappdev@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/alexmarch/cloud-node/issues"},"homepage":"https://github.com/alexmarch/cloud-node#readme","dependencies":{"body-parser":"^1.18.2","chalk":"^2.3.2","compression":"^1.7.2","cors":"^2.8.4","debug":"^3.1.0","express":"^4.16.2","morgan":"^1.9.0","node-yaml":"^3.1.1","pm2":"^2.10.1"},"gitHead":"897219df8aec51c9150bac9c8d8a228347d84fdd","_id":"@cloud-node/server@0.1.6-alpha","_npmVersion":"5.7.1","_nodeVersion":"8.9.4","_npmUser":{"name":"alexmarch","email":"maappdev@gmail.com"},"dist":{"integrity":"sha512-F6RO3QhSWkpjwqXpDNQnS3u+Nrpv139BwPLb06Hk/2Dy66vvp8I7e/RTaW2BlDnQnOjtm5I6ngyCzNbnVHV1xw==","shasum":"7d94871776090a0de6b28f630b96702b2f87698a","tarball":"https://registry.npmjs.org/@cloud-node/server/-/server-0.1.6-alpha.tgz","fileCount":14,"unpackedSize":14917,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGU5IUgFwXTcUl8hh0mKzUQi24pdTEVim8Ggv8y3st3XAiBccJgvweoaWmUBT/qBFO3L+1sdxosCRYh9VRealA0qUw=="}]},"maintainers":[{"name":"alexmarch","email":"maappdev@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/server_0.1.6-alpha_1520785440839_0.5854026903262748"},"_hasShrinkwrap":false}},"time":{"created":"2018-03-11T09:24:53.106Z","0.0.1-alpha":"2018-03-11T09:24:53.318Z","modified":"2022-04-04T23:26:55.441Z","0.0.2-alpha":"2018-03-11T09:44:55.559Z","0.0.2":"2018-03-11T09:57:58.380Z","0.0.3":"2018-03-11T09:59:58.772Z","0.0.4":"2018-03-11T10:01:34.656Z","0.0.4-alpha":"2018-03-11T10:16:27.465Z","0.0.5-alpha":"2018-03-11T11:14:37.840Z","0.0.5":"2018-03-11T11:25:43.778Z","0.0.6":"2018-03-11T15:44:17.497Z","0.1.6":"2018-03-11T15:56:48.965Z","0.1.6-alpha":"2018-03-11T16:24:00.913Z"},"maintainers":[{"name":"alexmarch","email":"maappdev@gmail.com"}],"description":" Cloud-node - web framework build on top of ExpressJS","homepage":"https://github.com/alexmarch/cloud-node#readme","keywords":["nodejs","expressjs","api","server"],"repository":{"type":"git","url":"git+https://github.com/alexmarch/cloud-node.git"},"author":{"name":"Aleksander Marchenko","email":"maappdev@gmail.com"},"bugs":{"url":"https://github.com/alexmarch/cloud-node/issues"},"license":"MIT","readme":"# cloud-node-server\n### Cloud-node - web framework build on top of ExpressJS\n![Logo](https://rawgit.com/alexmarch/cloud-node/master/assets/logo-v0.1.svg)\n\n![npm](https://img.shields.io/npm/l/express.svg)\n![npm](https://img.shields.io/npm/v/npm.svg)\n\nVery powerful framework, that allow you very quick, and simple start develop any API, with just config, without any programming. \n\n## Versions\nNode v8.9.4 (npm v5.7.1)\n\n## Install\n```bash\n  npm install @cloud-node/server@0.1.6-alpha\n```\n## How to use\n```javascript\n  const { server } = require('@cloud-node/server');\n  server.start({\n    pm2: process.env.NODE_ENV === 'development' ? true : false\n  });\n```\nIf option **pm2** is enabled in console you will see pm2 monitor\n![image](https://i.imgur.com/vXp5hI7.png|100)\n## Setup\n### Routes\nCreate configuration file for routes **config/routes.yml** with next structure\n```yml\nroutes:\n  - namespace:\n      name: 'apis'\n      resources: # - Resource will provice all RESTful API methods for controller home\n        - home:\n      cloud: # - Endpoint will look like: (GET) /apis/cloud/index\n        - get:\n            action: 'index'\n        - get:\n            as: 'home' # - Endpoint will look like: (GET) /apis/cloud/home\n            controller: 'cloud'\n            action: 'home'\n        - all: # - Endpoint will allow all request methods\n            controller: 'cloud'\n            action: 'all'\n```\n### Polices\nProtect you route with polices, create file **config/polices.js**\n```javascript\n  module.exports = {\n    isAuth: (req, res, next) => ( req.user.isAuth ? next() : next('User not authorized.') )// Checking if user authorized\n  }\n```\n```yaml\n  - get:\n      action: 'index'\n      polices:\n          - 'isAuth'\n          # ...\n```\n### Controllers\nCreate controller file in the application root folder **controllers/cloud.js**\n```javascript\n  module.exports = {\n    index: (req, res) => res.ok('Hi, cloud-node.')\n  }\n```\nroutes configuration\n```yaml\n  - get: # - Endpoint will look like: (GET) /apis/cloud/index/:id\n      as: 'index/:id'\n      controller: 'cloud'\n      action: 'index'\n```\n### Models\n@TODO: - In progress\n\n### Plugins\n@TODO  - In progress\n","readmeFilename":"README.md"}