Skip to content

Commit

Permalink
Setup authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
shonubijerry committed Oct 1, 2019
1 parent cd05dfa commit 2fd81df
Show file tree
Hide file tree
Showing 38 changed files with 9,824 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"presets": [
"@babel/preset-env"
],
"plugins": [
"@babel/plugin-proposal-object-rest-spread",
"@babel/transform-runtime"
]
}
6 changes: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
TEST_DATABASE_URL=test_database_url
DEV_DATABASE_URL=development_database_url
PORT=development_port
SALT_ROUNDS=integer_number
SECRET_KEY=some_hard_secret
API_URL=heroku_api_url
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
58 changes: 58 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"root": true,
"extends": "airbnb-base",
"env": {
"node": true,
"es6": true,
"mocha": true
},
"parserOptions": {
"sourceType": "module"
},
"rules": {
"one-var": 0,
"one-var-declaration-per-line": 0,
"new-cap": 0,
"consistent-return": 0,
"no-param-reassign": 0,
"comma-dangle": 0,
"import/named": 0,
"arrow-parens": 0,
"import/prefer-default-export": 0,
"import/no-unresolved": [
2,
{
"commonjs": true
}
],
"no-shadow": [
"error",
{
"allow": [
"req",
"res",
"err"
]
}
],
"valid-jsdoc": [
"error",
{
"requireReturn": true,
"requireReturnType": true,
"requireParamDescription": false,
"requireReturnDescription": true
}
],
"require-jsdoc": [
"error",
{
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true
}
}
]
}
}
19 changes: 19 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"require": [
"@babel/register",
"regenerator-runtime/runtime"
],
"reporter": [
"html",
"lcov",
"text"
],
"exclude": [
"src/models/index.js",
"src/database/config.js",
"src/modules/**/tests/*.test.js",
"src/doc/*",
"src/migrations/*",
"src/seeders/*"
]
}
8 changes: 8 additions & 0 deletions .sequelizerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
require('@babel/register')
const path = require('path');
module.exports = {
"config": path.resolve('./src/database', 'config.js'),
"models-path": path.resolve('./src/models'),
"seeders-path": path.resolve('./src/database/seeders'),
"migrations-path": path.resolve('./src/database/migrations')
};
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
sudo: false

language: node_js

node_js:
- "stable"

services:
- postgresql

notifications:
email: false

install:
- npm install

before_script:
- yarn global add nyc
- psql -c 'create database me_test;' -U postgres
- psql -c "CREATE USER shonubijerry WITH PASSWORD null;" -U postgres

script:
- npm run coveralls
- npm run coverage
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: npm start
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
[![Build Status](https://travis-ci.com/shonubijerry/mini-expense.svg?branch=develop)](https://travis-ci.com/shonubijerry/mini-expense)
[![Coverage Status](https://coveralls.io/repos/github/shonubijerry/mini-expense/badge.svg?branch=develop)](https://coveralls.io/github/shonubijerry/mini-expense?branch=master)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)


# mini-expense

CRUD expense manager
Loading

0 comments on commit 2fd81df

Please sign in to comment.