Skip to content

Commit 0b574d8

Browse files
author
Lazhari
committed
Init the Mini CRM RESTful API Project 🎉
0 parents  commit 0b574d8

File tree

9 files changed

+176
-0
lines changed

9 files changed

+176
-0
lines changed

.bithoundrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"critics": {
3+
"lint": {"engine": "semistandard"}
4+
}
5+
}

.codeclimate.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
engines:
2+
eslint:
3+
enabled: true
4+
ratings:
5+
paths:
6+
- app/**
7+
- config/**
8+
- test/**
9+
- "**.js"
10+
exclude_paths:
11+
- node_modules/**/*

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4

.eslintrc

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"rules": {
3+
"indent": [
4+
2,
5+
2, {
6+
"SwitchCase": 1
7+
}
8+
],
9+
"space-before-function-paren": [
10+
2, {
11+
"anonymous": "always",
12+
"named": "never"
13+
}
14+
],
15+
"no-use-before-define": [
16+
2,
17+
"nofunc"
18+
],
19+
"comma-dangle": [
20+
0
21+
],
22+
"import/no-extraneous-dependencies": [
23+
"error", {
24+
"devDependencies": true
25+
}
26+
],
27+
"no-underscore-dangle": [
28+
0
29+
]
30+
},
31+
"env": {
32+
"node": true,
33+
"mocha": true
34+
},
35+
"parserOptions": {
36+
"ecmaVersion": 6,
37+
"sourceType": "module"
38+
},
39+
"extends": [
40+
"eslint:recommended",
41+
"airbnb-base"
42+
]
43+
}

.eslintrc.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module.exports = {
2+
"env": {
3+
"es6": true,
4+
"node": true
5+
},
6+
"extends": "eslint:recommended",
7+
"rules": {
8+
"indent": [
9+
"error",
10+
4
11+
],
12+
"linebreak-style": [
13+
"error",
14+
"unix"
15+
],
16+
"quotes": [
17+
"error",
18+
"single"
19+
],
20+
"semi": [
21+
"error",
22+
"always"
23+
]
24+
}
25+
};

.gitignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
6+
# Runtime data
7+
pids
8+
*.pid
9+
*.seed
10+
.DS_Store
11+
# Directory for instrumented libs generated by jscoverage/JSCover
12+
lib-cov
13+
14+
# Coverage directory used by tools like istanbul
15+
coverage
16+
17+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
18+
.grunt
19+
20+
# node-waf configuration
21+
.lock-wscript
22+
.nyc_output
23+
.vscode/
24+
25+
# Compiled binary addons (http://nodejs.org/api/addons.html)
26+
build/Release
27+
28+
# Dependency directory
29+
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
30+
.idea/
31+
node_modules
32+
public/vendor
33+
# ignore uploads files
34+
public/uploads/*
35+
results.txt

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
save-exact=true

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
language: node_js
2+
node_js:
3+
- "4.7"
4+
- "5.12"
5+
- "6.9"
6+
- "7.5"
7+
- "8.4"
8+
- "9.1"
9+
services:
10+
- mongodb
11+
env:
12+
global:
13+
- NODE_ENV=test
14+
after_success: npm run coverage
15+
cache:
16+
directories:
17+
- node_modules
18+
deploy:
19+
provider: heroku
20+
app: mini-crm-api
21+
api_key:
22+
secure: grtjbHKLUclYuyB/4R8EDWovPJ44xwpOqO7etet7pqhyBxevKaGYIZIk+9ZQNuRjlmGIHScGYA3EC59SlBC5DV2Zar3r8SzIGUrRXtTdbcAXJHz/VDmiZGWGOs4AXZKsZfHbU779rc2XhRbp+WWvLdm3CMSGSOb0+82zj/uR8giUdRJXk77eu/3nb5Z63+jeC9FhGDbtTnQm+icmKyc+wXF6gAFbCI0KoddUIV+ivmUUFTmThDbRUd3ht3F2Wnh0SmumBY9iYcPaEvp4qSMnTtPasD+1gQfFsO9MEb/OnizbuMTAl1BkDkzKSmvtIF0AlQdhyirqC78KP3C1Zhqfzg1iLm0W6jYcDjOc7MNBvQ5WcDWLeCKe/GKB0v6MdujB74C03p7tZHGIuelHcBi1JWlpHEo5QZ7ofhg04Ixbg0XLYXSPqpVJFko2zVVvy8IptLaZRicQx35Lm5K5HgdIq8qKLwvKj2tLoRbgm9G0h1PvD/+xT/gk8SY9Xs+gWglrBrxUViFvmL0Uy/hl6BBVB7JpokSdKU+ffJgISMdern+FXYFH59No7ArBdS1f3YNf0dWkOld7u6EY/TaK7n/j8KYe8e55JLKV0cFj6jdEl8jryJuuLjmhsniVYB3K9LGCIVEHPk4NYVpWMNuQlIxjKWr5EGEx/XBHj8HuZYoQeRM=

package.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "mini-crm-api",
3+
"version": "0.0.1",
4+
"description": "Mini CRM RESTful API",
5+
"main": "index.js",
6+
"scripts": {
7+
"start": "node server.js",
8+
"dev": "export NODE_ENV=dev && nodemon server.js",
9+
"test": "nyc --reporter=html --reporter=text mocha --timeout 10000",
10+
"coverage": "nyc report --reporter=text-lcov | coveralls"
11+
},
12+
"author": "",
13+
"license": "ISC",
14+
"dependencies": {
15+
"body-parser": "1.18.2",
16+
"config": "1.28.1",
17+
"express": "4.16.2",
18+
"mongoose": "4.13.6",
19+
"morgan": "1.9.0"
20+
},
21+
"devDependencies": {
22+
"chai": "^3.5.0",
23+
"chai-http": "^3.0.0",
24+
"coveralls": "^2.11.16",
25+
"mocha": "^3.2.0",
26+
"nodemon": "^1.11.0",
27+
"nyc": "10.3.2"
28+
}
29+
}

0 commit comments

Comments
 (0)