Permalink
Browse files

init

  • Loading branch information...
mjhea0 committed Aug 16, 2017
0 parents commit 559acebd228cad5bb287de76526af6e44c22461b
Showing with 104 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. +43 −0 .jshintrc
  3. +21 −0 LICENSE
  4. +8 −0 README.md
  5. +16 −0 package.json
  6. +1 −0 src/server/index.js
  7. +12 −0 test/sample.test.js
@@ -0,0 +1,3 @@
.DS_Store
node_modules/
npm-debug.log
@@ -0,0 +1,43 @@
{
"globals": {
"esnext": true,
"jasmine": false,
"spyOn": false,
"it": false,
"console": false,
"describe": false,
"expect": false,
"beforeEach": false,
"afterEach": false,
"waits": false,
"waitsFor": false,
"runs": false,
"$": false,
"confirm": false
},
"esnext": true,
"node" : true,
"browser" : true,
"boss" : false,
"curly": false,
"debug": false,
"devel": false,
"eqeqeq": true,
"evil": true,
"forin": false,
"immed": true,
"laxbreak": false,
"newcap": true,
"noarg": true,
"noempty": false,
"nonew": false,
"nomen": false,
"onevar": true,
"plusplus": false,
"regexp": false,
"undef": true,
"sub": true,
"strict": false,
"white": true,
"unused": false
}
21 LICENSE
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2017 Michael Herman
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,8 @@
# Building a RESTful API with Koa and Postgres
Project base...
1. Fork/Clone
1. Install dependencies - `npm install`
1. Sanity check - `npm start`
1. Test - `npm test`
@@ -0,0 +1,16 @@
{
"name": "node-koa-api",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node ./src/server/index.js",
"test": "./node_modules/mocha/bin/_mocha"
},
"keywords": [],
"author": "Michael Herman",
"license": "ISC",
"devDependencies": {
"chai": "^4.1.1",
"mocha": "^3.5.0"
}
}
@@ -0,0 +1 @@
console.log('It works!');
@@ -0,0 +1,12 @@
process.env.NODE_ENV = 'test';
const chai = require('chai');
const should = chai.should();
describe('Sample Test', () => {
it('should pass', () => {
const sum = 1 + 2;
sum.should.eql(3);
sum.should.not.eql(4);
});
});

0 comments on commit 559aceb

Please sign in to comment.