{"_id":"xpress-shotgun","_rev":"78-e604a0f95fdf55de38e31cbfe145f145","name":"xpress-shotgun","dist-tags":{"latest":"1.0.34"},"versions":{"1.0.1":{"name":"xpress-shotgun","version":"1.0.1","description":"","main":"index.js","bin":{"shotgun":"../shotgun.sh"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"ISC","_id":"xpress-shotgun@1.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.5.0","_npmUser":{"name":"pazuzu111","email":"pazuzublue111@gmail.com"},"dist":{"integrity":"sha512-qfkinWUl/+bHLdbAlimxHWlS7J9+HQIEvX+7O0eCOB9CtUVpckmyJ2WL1pZNq9j0eSpkzpTtQdOh9iJ19nxntg==","shasum":"e9ea41f11cb47c2757e771df23697d93b0049d2e","tarball":"https://registry.npmjs.org/xpress-shotgun/-/xpress-shotgun-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHqmkIw1UFphnBa4ph58Xzq109FNrq7Rdz97aRuG+T9VAiEAj/0LmDytKF/VUsb52ytDYZs+FaMjWwaY7y2NvJ537HI="}]},"maintainers":[{"name":"pazuzu111","email":"pazuzublue111@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/xpress-shotgun-1.0.1.tgz_1513542728778_0.5270872698165476"},"deprecated":"DO NOT INSTALL will break machinenpm deprecate xpress-shotgun@1.0.1 DO"},"1.0.2":{"name":"xpress-shotgun","version":"1.0.2","description":"","main":"index.js","bin":{"shotgun":"./shotgun.sh"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"ISC","_id":"xpress-shotgun@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.5.0","_npmUser":{"name":"pazuzu111","email":"pazuzublue111@gmail.com"},"dist":{"integrity":"sha512-BkMTAjUEd8eR+ZTr+g4jlFGlzQh9mtEliyAfGW7Z59bs8iBr/wUnjCnEkSMpTmOjHPhLjRuglBQtVcnUl2JlaQ==","shasum":"24488d0adf5ded8e8220aace5c790298d9f6deff","tarball":"https://registry.npmjs.org/xpress-shotgun/-/xpress-shotgun-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGu94pP0viLVVZkIe2vlHd4NQk1s0Pj3lAaORM4fV0EQIgVyF9doIASS8/DGVsbDIZ1nvDxzDwEiqdZwRtD9q2QCE="}]},"maintainers":[{"name":"pazuzu111","email":"pazuzublue111@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/xpress-shotgun-1.0.2.tgz_1513544564836_0.9775311436969787"},"deprecated":"DO NOT INSTALL will break machine"},"1.0.3":{"name":"xpress-shotgun","version":"1.0.3","description":"![shotgunlogo1](https://user-images.githubusercontent.com/31411569/34085495-c7f82124-e35f-11e7-97de-f0a36cd80ad2.png)","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/pazuzu111/express-shotgun.git"},"keywords":["express","mvc","framework","template","shotgun","xpress","crud","db","server","node","ejs","promise"],"author":{"name":"pazuzu111"},"license":"ISC","bugs":{"url":"https://github.com/pazuzu111/express-shotgun/issues"},"homepage":"https://github.com/pazuzu111/express-shotgun#readme","_id":"xpress-shotgun@1.0.3","_npmVersion":"5.6.0","_nodeVersion":"8.5.0","_npmUser":{"name":"pazuzu111","email":"pazuzublue111@gmail.com"},"dist":{"integrity":"sha512-eOg81zTy3tM53T1blYo64S2Krdwa8BBeN0uo15wBzvsl4vKOxeETHgibVpLSN2npRC0QBijqpY2dujHmh2vAuw==","shasum":"c62ef39aae3679e95c9143671576b44b8c403f45","tarball":"https://registry.npmjs.org/xpress-shotgun/-/xpress-shotgun-1.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5uM1WEq+cOMg1X+J+VI3c8Y1oXqUWZSMx3Im08NHNogIgVrKgI5kZodo6aCUytolOV0jwMc825BAIU9fPJEcsKD0="}]},"maintainers":[{"name":"pazuzu111","email":"pazuzublue111@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/xpress-shotgun-1.0.3.tgz_1513561110121_0.5480022912379354"},"deprecated":"DO NOT INSTALL will break machine"},"1.0.10":{"name":"xpress-shotgun","version":"1.0.10","description":"![shotgunlogo1](https://user-images.githubusercontent.com/31411569/34085495-c7f82124-e35f-11e7-97de-f0a36cd80ad2.png)","main":"index.js","bin":{"shotgun":"./shotgun.sh"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","preinstall":"echo \"Error: must run global install\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/pazuzu111/express-shotgun.git"},"keywords":["express","mvc","framework","template","shotgun","xpress","crud","db","server","node","ejs","promise"],"author":{"name":"pazuzu111"},"license":"ISC","bugs":{"url":"https://github.com/pazuzu111/express-shotgun/issues"},"homepage":"https://github.com/pazuzu111/express-shotgun#readme","_id":"xpress-shotgun@1.0.10","_npmVersion":"5.6.0","_nodeVersion":"8.5.0","_npmUser":{"name":"pazuzu111","email":"pazuzublue111@gmail.com"},"dist":{"integrity":"sha512-gieKc/8JEUpRUu2PXfEkLjj7kRhkvfI/CtIjAi72+yUZ0tW4VZhd40Pjw6llYb0gtAQ9hohbHk/7VdXEqFc14A==","shasum":"da2df21816ba7a5c8b164f764b25aa314096709c","tarball":"https://registry.npmjs.org/xpress-shotgun/-/xpress-shotgun-1.0.10.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE3ZPmdTHjxCh5024LvgNDfkAzu35KA+QjizC8t0KWaDAiEAodAb97nODQqfc2XUzx7iqQVnGWl85VXatUXgy1+3+uc="}]},"maintainers":[{"name":"pazuzu111","email":"pazuzublue111@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/xpress-shotgun-1.0.10.tgz_1513651713558_0.112725610146299"}},"1.0.32":{"name":"xpress-shotgun","version":"1.0.32","description":"![shotgunlogo1](https://user-images.githubusercontent.com/31411569/34085495-c7f82124-e35f-11e7-97de-f0a36cd80ad2.png)","main":"index.js","bin":{"shotgun":"./shotgun.sh"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/pazuzu111/express-shotgun.git"},"keywords":["express","mvc","framework","template","shotgun","xpress","crud","db","server","node","ejs","promise"],"author":{"name":"pazuzu111"},"license":"ISC","bugs":{"url":"https://github.com/pazuzu111/express-shotgun/issues"},"homepage":"https://github.com/pazuzu111/express-shotgun#readme","_id":"xpress-shotgun@1.0.32","_npmVersion":"5.6.0","_nodeVersion":"8.5.0","_npmUser":{"name":"pazuzu111","email":"pazuzublue111@gmail.com"},"dist":{"integrity":"sha512-nxu9EA1yhybtIW4a9c/7WkWPAn5We8iCIiBwcZ7X1i9UIaff47xc2F8/B/RcYbFGGEhkC3Lp4lJ7Z7yy2ICtMw==","shasum":"31978e8205070e7bf9b2b5f74a51e9674a94f2ba","tarball":"https://registry.npmjs.org/xpress-shotgun/-/xpress-shotgun-1.0.32.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGbRfEa9wOAjmRaYeY2aIO1FRqx4+GnW9ucdQIbBmL1JAiEAjvkk38RnDXBU6pp0g/LjbjGE0TcdJr5CP7rP/q++ebA="}]},"maintainers":[{"name":"pazuzu111","email":"pazuzublue111@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/xpress-shotgun-1.0.32.tgz_1513742273466_0.6024294493254274"},"deprecated":"added somestuff"},"1.0.34":{"name":"xpress-shotgun","version":"1.0.34","description":"![shotgunlogo1](https://user-images.githubusercontent.com/31411569/34085495-c7f82124-e35f-11e7-97de-f0a36cd80ad2.png)","main":"index.js","bin":{"shotgun":"./shotgun.sh"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/pazuzu111/express-shotgun.git"},"keywords":["express","mvc","framework","template","shotgun","xpress","crud","db","server","node","ejs","promise"],"author":{"name":"pazuzu111"},"license":"ISC","bugs":{"url":"https://github.com/pazuzu111/express-shotgun/issues"},"homepage":"https://github.com/pazuzu111/express-shotgun#readme","_id":"xpress-shotgun@1.0.34","_npmVersion":"5.6.0","_nodeVersion":"8.5.0","_npmUser":{"name":"pazuzu111","email":"pazuzublue111@gmail.com"},"dist":{"integrity":"sha512-YrB5rvNd4ff563fYYIxAECAwHMTVn260eKOkxHvMVa3yk8+H7KQ/qY06oQPKnPbW4lbaSAa4IBhRCHqk45M5LQ==","shasum":"4e33381380543312f7c68ebc39a22f4b9e03cde3","tarball":"https://registry.npmjs.org/xpress-shotgun/-/xpress-shotgun-1.0.34.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEZ+Ircrbg/zMxNLrP6OyjSZX2ILkJ2qYp4a1r7ZccLQIhAKGEFaNJ5+IT4G/WZW0Dk1pvjHj7OLgY9XD9oYjR6i5H"}]},"maintainers":[{"name":"pazuzu111","email":"pazuzublue111@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/xpress-shotgun-1.0.34.tgz_1516942765237_0.1911970165092498"}}},"readme":"![shotgunlogo1](https://user-images.githubusercontent.com/31411569/34085495-c7f82124-e35f-11e7-97de-f0a36cd80ad2.png)\n[![npm version](https://badge.fury.io/js/xpress-shotgun.svg)](https://badge.fury.io/js/xpress-shotgun)\n\n# xpress-shotgun\n![ezgif com-video-to-gif 1](https://user-images.githubusercontent.com/31411569/34190621-cb417db0-e50f-11e7-8077-d0b36d3e706c.gif)\n\nxpress-shotgun is a npm module that shotguns an express MVC to your specified directory\n  \n  * a directory will be made along with the model, with methods and sql commands already embedded\n    the controller & the views\n  \n  * you will have a full crud express app, all you have to do is create a database, a node server, \n    & fll out views to your liking\n    \n  * shotgun also takes care of the npm init & installs ejs(viewengine) and pg-promise(more info below)\n\n    \n# before use INSTALL bash\n\nBash version can be queried with the --version flag: \n\n```sh\nbash --version\n```\noutput -> 3.2.53(1)-release\n\nThe actual installation is going to happen with HomeBrew, the OS X package manager, if you don’t have it, installed it with the following command:\n```sh\n1) ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\"\n```\n\nUpdate homebrew packet database and install bash:\n```sh\n2) brew update && brew install bash\n```\n\nAdd the new shell to the list of allowed shells\n```sh\n3) sudo bash -c 'echo /usr/local/bin/bash >> /etc/shells'\n```\nChange to the new shell\n```sh\nchsh -s /usr/local/bin/bash \n```\n\n# Now close terminal and open again\n\n# installation\n\ninstall shotgun GLOBALLY:\n```sh\nnpm install -g xpress-shotgun \n```\nonce installed run:\n```sh\nshotgun nameofapp dbname modelname(capital) controllername(plural) singularRESPONSE\n```\n# dependecies\n\n```ssh\n\"ejs\": \"^2.5.7\",\n\"express\": \"^4.16.2\",\n\"pg-promise\": \"^7.0.3\"\n```\n\n# PG promise \n\nPG-PROMISE grants you accesss to DB query methods\n  * Automatic connections\n  * Automatic transactions\n  * Powerful query-formatting engine\n  * Support for ES6 generators and ES7 async/await\n  * Declarative approach to handling query results\n  * Global events reporting for central handling\n  * Extensive support for external SQL files\n  * Support for all promise libraries\n\n# examples\n* Simple SELECT\n\n# ES5\n```ssh\ndb.any('SELECT * FROM users WHERE active = $1', [true])\n    .then(function(data) {\n        // success;\n    })\n    .catch(function(error) {\n        // error;\n    });\n  ```\n# ES6\n```ssh\ntry {\n    const users = yield db.any('SELECT * FROM users WHERE active = $1', [true]);\n    // success\n} \ncatch(e) {\n   // error\n}\n```\n# ES7\n```ssh\ntry {\n    const users = await db.any('SELECT * FROM users WHERE active = $1', [true]);\n    // success\n} \ncatch(e) {\n    // error\n}\n```\n\n****************************************************************************************\n# ejs\n\nFeatures\n\n  * Control flow with <% %>\n  * Escaped output with <%= %> (escape function configurable)\n  * Unescaped raw output with <%- %>\n  * Newline-trim mode ('newline slurping') with -%> ending tag\n  * Whitespace-trim mode (slurp all whitespace) for control flow with <%_ _%>\n  * Custom delimiters (e.g., use <? ?> instead of <% %>)\n  * Includes\n  * Client-side support\n  * Static caching of intermediate JavaScript\n  * Static caching of templates\n  * Complies with the Express view system\n  \n# Examples\n```ssh\n<% if (user) { %>\n  <h2><%= user.name %></h2>\n<% } %>\nTry EJS online at: https://ionicabizau.github.io/ejs-playground/.\n```\n# Usage\n```ssh\nvar template = ejs.compile(str, options);\ntemplate(data);\n// => Rendered HTML string \n \nejs.render(str, data, options);\n// => Rendered HTML string \n \nejs.renderFile(filename, data, options, function(err, str){\n    // str => Rendered HTML string \n});\n```\n","maintainers":[{"name":"pazuzu111","email":"pazuzublue111@gmail.com"}],"time":{"modified":"2022-05-25T00:57:38.998Z","created":"2017-12-17T20:24:32.788Z","1.0.0":"2017-12-17T20:24:32.788Z","1.0.1":"2017-12-17T20:32:09.659Z","1.0.2":"2017-12-17T21:02:45.756Z","1.0.3":"2017-12-18T01:38:30.182Z","1.0.4":"2017-12-18T04:03:15.891Z","1.0.5":"2017-12-18T05:14:58.037Z","1.0.6":"2017-12-18T05:17:03.417Z","1.0.7":"2017-12-18T05:30:05.296Z","1.0.8":"2017-12-18T18:55:58.167Z","1.0.9":"2017-12-19T01:54:41.409Z","1.0.10":"2017-12-19T02:48:33.641Z","1.0.11":"2017-12-19T02:58:54.553Z","1.0.12":"2017-12-19T03:12:24.604Z","1.0.13":"2017-12-19T03:17:06.424Z","1.0.14":"2017-12-19T03:47:40.969Z","1.0.15":"2017-12-19T04:58:16.417Z","1.0.16":"2017-12-19T05:00:14.566Z","1.0.17":"2017-12-19T05:44:57.300Z","1.0.18":"2017-12-19T14:45:32.289Z","1.0.19":"2017-12-19T14:47:26.115Z","1.0.20":"2017-12-19T15:34:45.154Z","1.0.21":"2017-12-19T16:09:06.076Z","1.0.22":"2017-12-19T16:15:20.416Z","1.0.23":"2017-12-19T19:57:59.966Z","1.0.24":"2017-12-20T01:16:14.921Z","1.0.25":"2017-12-20T01:24:56.256Z","1.0.26":"2017-12-20T01:30:37.748Z","1.0.27":"2017-12-20T01:36:40.148Z","1.0.28":"2017-12-20T01:40:48.528Z","1.0.29":"2017-12-20T01:46:49.895Z","1.0.30":"2017-12-20T02:12:25.979Z","1.0.31":"2017-12-20T03:08:31.698Z","1.0.32":"2017-12-20T03:57:54.489Z","1.0.33":"2018-01-26T03:20:12.562Z","1.0.34":"2018-01-26T04:59:26.807Z"},"license":"ISC","readmeFilename":"README.md","description":"![shotgunlogo1](https://user-images.githubusercontent.com/31411569/34085495-c7f82124-e35f-11e7-97de-f0a36cd80ad2.png)","homepage":"https://github.com/pazuzu111/express-shotgun#readme","keywords":["express","mvc","framework","template","shotgun","xpress","crud","db","server","node","ejs","promise"],"repository":{"type":"git","url":"git+https://github.com/pazuzu111/express-shotgun.git"},"author":{"name":"pazuzu111"},"bugs":{"url":"https://github.com/pazuzu111/express-shotgun/issues"}}