Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"presets": ["react", "es2015"],
"env": {
"development": {
"presets": ["react-hmre"]
}
}
}
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
73 changes: 73 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"plugins": [
"react"
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true,
"jquery": true,
"mocha": true
},
"rules": {
"quotes": 0,
"no-console": 1,
"no-debugger": 1,
"no-var": 1,
"semi": [1, "always"],
"no-trailing-spaces": 0,
"eol-last": 0,
"no-unused-vars": 0,
"no-underscore-dangle": 0,
"no-alert": 0,
"no-lone-blocks": 0,
"jsx-quotes": 1,
"react/display-name": [ 1, {"ignoreTranspilerName": false }],
"react/forbid-prop-types": [1, {"forbid": ["any"]}],
"react/jsx-boolean-value": 1,
"react/jsx-closing-bracket-location": 0,
"react/jsx-curly-spacing": 1,
"react/jsx-indent-props": 0,
"react/jsx-key": 1,
"react/jsx-max-props-per-line": 0,
"react/jsx-no-bind": 1,
"react/jsx-no-duplicate-props": 1,
"react/jsx-no-literals": 0,
"react/jsx-no-undef": 1,
"react/jsx-pascal-case": 1,
"react/jsx-sort-prop-types": 0,
"react/jsx-sort-props": 0,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-danger": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/no-direct-mutation-state": 1,
"react/no-multi-comp": 1,
"react/no-set-state": 0,
"react/no-unknown-property": 1,
"react/prefer-es6-class": 1,
"react/prop-types": 1,
"react/react-in-jsx-scope": 1,
"react/require-extension": 1,
"react/self-closing-comp": 1,
"react/sort-comp": 1,
"react/wrap-multilines": 1,
"import/namespace": 0,
"import/default": 0,
"import/no-named-as-default": 0,
"import/no-named-as-default-member": 0
}
}
339 changes: 0 additions & 339 deletions LICENSE

This file was deleted.

51 changes: 7 additions & 44 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,9 @@
## Pre-req
Node v9+
npm 5.0.0+
This project uses NPM as a main build package builder along with these frameworks:

## recommended set up
- Bootstrap for styling
- React:
- React-Router:
- Redux
- mocha

download nvm
links:
(mac) https://github.com/creationix/nvm
(windows) https://github.com/coreybutler/nvm-windows

## install Node
preferably v10+

## Set up
1) npm install -g firebase-tools
2) clone repo
3) cd firebase-react-boilerplate && npm install
4) cd front-end && npm install

## Doc links
firebase-tools: https://github.com/firebase/firebase-tools

## Deploy App to prod command
firebase deploy
Hosting URL: https://ibrokethis-9b72f.firebaseapp.com

## Front end
Front end is using React js as the JS framework
All front end related code is under the folder "front-end"

Only dist/** is deployed to the page


1) To test frontend code locally, run command
npm run dev

2) To fix linting issues, run command
npm run lintfix

3) To push new code to prod, run command
npm run build
firebase deploy

## Backend
We will be using javascript ES6 here for the cloud functions
In order to get started you want to run the command "npm install". After you have installed all the commands use "npm run start" to run the lint checks, unit tests, and launch a deployment app if the previous operations are successful. If you're curious on the webpack setup for the npm commands that are hooks for it look for the "package.json" file and then the corresponding "webpack.config.[env].js" file that is listed under the command.
2 changes: 2 additions & 0 deletions apiService/pairPerfectApi.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// This file will be responsible for fetching data from the database and forming the data model to be used from the
// client side application.
6 changes: 0 additions & 6 deletions database.rules.json

This file was deleted.

24 changes: 0 additions & 24 deletions firebase.json

This file was deleted.

14 changes: 0 additions & 14 deletions firestore.indexes.json

This file was deleted.

7 changes: 0 additions & 7 deletions firestore.rules

This file was deleted.

Loading