Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
116a186
Add specs for issue 22 to the read me
ai-santos Apr 3, 2017
c43228b
React router works, shows landing page
ai-santos Apr 4, 2017
14d9398
Merge branch 'master' of https://github.com/GuildCrafts/interview-app…
ai-santos Apr 4, 2017
9c911e8
Merge branch 'master' of https://github.com/GuildCrafts/interview-app…
ai-santos Apr 4, 2017
5f645da
Write one test for the route for the landing component
ai-santos Apr 4, 2017
1438741
WIP working disconnecting web dev server
ai-santos Apr 5, 2017
dcca213
fixed db queries to read level instead of difficulty and finished go …
lizzkats Apr 5, 2017
1b28043
fixed some of the testing just need to change two more db calls
lizzkats Apr 6, 2017
2c29117
Finished database tests so that multiple tags can be entered
lizzkats Apr 6, 2017
f3d0857
adds gofile bash script
lizzkats Apr 6, 2017
e3ddce8
Merge branch 'master' into reconfiguredb
lizzkats Apr 6, 2017
a098fbe
Fixed testing and added columns to tables
lizzkats Apr 6, 2017
f7d08fe
Testing (#32)
lizzkats Apr 6, 2017
1fd1ac1
Routes
HJBowers Apr 6, 2017
47f6bc8
Merge branch 'master' into reconfiguredb
lizzkats Apr 6, 2017
8edae86
Merge pull request #52 from GuildCrafts/reconfiguredb
lizzkats Apr 6, 2017
b7edfcc
created header component incorpand te testesting (#27)
Apr 6, 2017
5587738
10 interviewer prompt (#50)
Apr 6, 2017
26a072f
constructed formm modal for new question creation (#53)
Apr 6, 2017
570744e
adds gofile bash script (#51)
lizzkats Apr 6, 2017
a481f2f
Merge branch 'master' of https://github.com/GuildCrafts/interview-app…
lizzkats Apr 6, 2017
8654972
Merge pull request #55 from GuildCrafts/approverandprompt
lizzkats Apr 6, 2017
e53a7cd
Merge branch 'asantos3026-issue-22-react-router'
ai-santos Apr 6, 2017
36b3aae
test
benjaminpettus Apr 6, 2017
6ea44b2
Merge branch 'issue-22-react-router' of github.com:asantos3026/interv…
benjaminpettus Apr 6, 2017
3f9f4f9
Issue 22 react router (#25)
ai-santos Apr 6, 2017
7010c26
fixed merge conflicts
benjaminpettus Apr 6, 2017
7b7c5f3
Issue 22 react router express (#56)
ai-santos Apr 6, 2017
11abae3
adding nodemon
punitrathore Apr 7, 2017
2e0cab4
changing existing questions
punitrathore Apr 7, 2017
3cde77e
added eslint - needs to be configured
benjaminpettus Apr 7, 2017
988dc4e
Merge branch 'master' into issue-22-linter
ai-santos Apr 7, 2017
7bfad06
Merge pull request #58 from asantos3026/issue-22-linter
ai-santos Apr 7, 2017
e85ee36
Fixes issue #12 User Auth (#82)
lizzkats Apr 10, 2017
7f62f25
fixes bash script for idm install and adds readme directions (#84)
lizzkats Apr 11, 2017
3888119
layout page created and implemented (#87)
benjaminpettus Apr 11, 2017
5bac881
WIP testing
benjaminpettus Apr 12, 2017
6b44420
WIP testing eod 4/12
benjaminpettus Apr 13, 2017
95bdcff
#90 WIP Front-End Testing
benjaminpettus Apr 13, 2017
c84e765
#90 WIP testing
benjaminpettus Apr 13, 2017
6303e62
#90 WIP game page
benjaminpettus Apr 13, 2017
a10c459
#90 WIP testing - working on landing page
benjaminpettus Apr 14, 2017
8b3622d
Merge branch 'testing' into testing
benjaminpettus Apr 14, 2017
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
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
JWT_PUBLIC_KEY="-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnk0u5Aag3eJk3FaiG9H+\nv/NLRjiZxFXGJBoOO5Zhal1j8tk1D1vkWRMk+KdCjN998s//62kwYMLkAjOuEoCc\n4Lb6hCeHVIgL+nX9JOxEny0Zi6Koli1KnyQNUZ7vVYHf5NZ7k1h6MShYIzhUPdks\ntiE9nQMtP18JBupccES986iMZw8hra3AGjTBXR6siRePnBa84rYlPhzETjZX4jf6\nM+aDI7+KY3ztrkcBSQL7sbPdILBepBzxHCN1uqUBoYbVTYPZYMmaGsK553KcVds2\nB83LAy626KRAD7Sp1/NwgRIcL55bB1xef/Q+qjSnIOGd4r2JkmjmNLEM4A0p1rEo\nFQIDAQAB\n-----END PUBLIC KEY-----"
261 changes: 261 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,261 @@
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"accessor-pairs": "error",
"array-bracket-spacing": "error",
"array-callback-return": "error",
"arrow-body-style": "error",
"arrow-parens": "error",
"arrow-spacing": [
"error",
{
"after": true,
"before": true
}
],
"block-scoped-var": "error",
"block-spacing": "error",
"brace-style": "error",
"callback-return": "error",
"camelcase": "error",
"capitalized-comments": [
"error",
"never"
],
"class-methods-use-this": "error",
"comma-dangle": "error",
"comma-spacing": [
"error",
{
"after": true,
"before": false
}
],
"comma-style": "error",
"complexity": "error",
"computed-property-spacing": [
"error",
"never"
],
"consistent-return": "error",
"consistent-this": "error",
"curly": "error",
"default-case": "error",
"dot-location": "error",
"dot-notation": "error",
"eol-last": "error",
"eqeqeq": "error",
"func-call-spacing": "error",
"func-name-matching": "error",
"func-names": "error",
"func-style": "error",
"generator-star-spacing": "error",
"global-require": "error",
"guard-for-in": "error",
"handle-callback-err": "error",
"id-blacklist": "error",
"id-length": "error",
"id-match": "error",
"indent": "off",
"init-declarations": "error",
"jsx-quotes": "error",
"key-spacing": "error",
"keyword-spacing": [
"error",
{
"after": true,
"before": true
}
],
"line-comment-position": "error",
"linebreak-style": [
"error",
"unix"
],
"lines-around-comment": "error",
"lines-around-directive": "error",
"max-depth": "error",
"max-len": "off",
"max-lines": "error",
"max-nested-callbacks": "error",
"max-params": "error",
"max-statements": "error",
"max-statements-per-line": "error",
"multiline-ternary": "error",
"new-cap": "error",
"new-parens": "error",
"newline-after-var": [
"error",
"never"
],
"newline-before-return": "off",
"newline-per-chained-call": "error",
"no-alert": "error",
"no-array-constructor": "error",
"no-await-in-loop": "error",
"no-bitwise": "error",
"no-caller": "error",
"no-catch-shadow": "error",
"no-compare-neg-zero": "error",
"no-confusing-arrow": "error",
"no-continue": "error",
"no-div-regex": "error",
"no-duplicate-imports": "error",
"no-else-return": "error",
"no-empty-function": "error",
"no-eq-null": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-extra-label": "error",
"no-extra-parens": "error",
"no-floating-decimal": "error",
"no-implicit-coercion": "error",
"no-implicit-globals": "error",
"no-implied-eval": "error",
"no-inline-comments": "error",
"no-invalid-this": "error",
"no-iterator": "error",
"no-label-var": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-lonely-if": "error",
"no-loop-func": "error",
"no-magic-numbers": "error",
"no-mixed-operators": "error",
"no-mixed-requires": "error",
"no-multi-assign": "error",
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-multiple-empty-lines": "error",
"no-native-reassign": "error",
"no-negated-condition": "error",
"no-negated-in-lhs": "error",
"no-nested-ternary": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-require": "error",
"no-new-wrappers": "error",
"no-octal-escape": "error",
"no-param-reassign": "error",
"no-path-concat": "error",
"no-plusplus": "error",
"no-process-env": "error",
"no-process-exit": "error",
"no-proto": "error",
"no-prototype-builtins": "error",
"no-restricted-globals": "error",
"no-restricted-imports": "error",
"no-restricted-modules": "error",
"no-restricted-properties": "error",
"no-restricted-syntax": "error",
"no-return-assign": "error",
"no-return-await": "error",
"no-script-url": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-shadow": "off",
"no-shadow-restricted-names": "error",
"no-spaced-func": "error",
"no-sync": "error",
"no-tabs": "error",
"no-template-curly-in-string": "error",
"no-ternary": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-undefined": "error",
"no-underscore-dangle": "error",
"no-unmodified-loop-condition": "error",
"no-unneeded-ternary": "error",
"no-unused-expressions": "error",
"no-use-before-define": "error",
"no-useless-call": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-constructor": "error",
"no-useless-escape": "error",
"no-useless-rename": "error",
"no-useless-return": "error",
"no-var": "error",
"no-void": "error",
"no-warning-comments": "error",
"no-whitespace-before-property": "error",
"no-with": "error",
"nonblock-statement-body-position": "error",
"object-curly-newline": "error",
"object-curly-spacing": [
"error",
"always"
],
"object-property-newline": "error",
"object-shorthand": "error",
"one-var": "off",
"one-var-declaration-per-line": "error",
"operator-assignment": "error",
"operator-linebreak": "error",
"padded-blocks": "off",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-destructuring": "error",
"prefer-numeric-literals": "error",
"prefer-promise-reject-errors": "error",
"prefer-reflect": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"quote-props": "error",
"quotes": [
"error",
"single"
],
"radix": "error",
"require-await": "error",
"require-jsdoc": "error",
"rest-spread-spacing": "error",
"semi": "off",
"semi-spacing": "error",
"sort-imports": "off",
"sort-keys": "error",
"sort-vars": "error",
"space-before-blocks": "error",
"space-before-function-paren": "error",
"space-in-parens": "off",
"space-infix-ops": "error",
"space-unary-ops": "error",
"spaced-comment": [
"error",
"always"
],
"strict": "error",
"symbol-description": "error",
"template-curly-spacing": "error",
"template-tag-spacing": "error",
"unicode-bom": [
"error",
"never"
],
"valid-jsdoc": "error",
"vars-on-top": "error",
"wrap-iife": "error",
"wrap-regex": "error",
"yield-star-spacing": "error",
"yoda": "error"
}
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ node_modules
npm-debug.log

# ignore the dist folder that webpack creates for are react app.
public/dist/
public/dist/*

.env

.DS_Store
yarn.lock
24 changes: 20 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,26 @@ Practicing mock interviews helps the Candidate develop skills for answering tech
Specifications and requirements will be assigned based on the items in backlog within the Development project (see the projects tab of the interview-app repository).

### Setup instructions
Install all dependencies by running this in a terminal window
```bash
npm install
```
If this is the first time you're setting up this repo:

./go init
./go install_idm

You will need to create a `.env.development` file in IDM and follow steps 7 & 8 in the idm ReadMe.

Then, you will need to create a `.env.development` file in this repo and add the JWT_PUBLIC_KEY from IDM.

If you've worked on this repo in the past, and you're working in the development environment:
./go start

To run your test and reset the test database:
./go test

To reset the database and run the migration:
./go reset_db

For additional help and usage instructions:
./go help

### Start development server
Run this in a terminal window
Expand Down
49 changes: 44 additions & 5 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,52 @@
// in server.js
const express = require('express');
const app = express();
import express from 'express'
import authInitialize from './src/config/auth'
import cookieParser from 'cookie-parser'
import bodyParser from 'body-parser'
import path from 'path'
import { parseConfig, getEnv } from './src/config/config'
import webpack from 'webpack'
import webpackDevMiddleware from 'webpack-dev-middleware'
import webpackHotMiddleware from 'webpack-hot-middleware'
import webpackConfig from './webpack.config'
const compiler = webpack(webpackConfig)

const app = express()

app.use(bodyParser.json())
app.use(bodyParser.urlencoded({ extended: false }))
app.use(cookieParser())

if(getEnv() === 'development') {
app.use(webpackDevMiddleware(compiler, {
publicPath: webpackConfig.output.publicPath,
filename: webpackConfig.output.filename,
serverSideRender: true,
stats: {
color: true,
hash: false,
timings: true,
chunks: false,
chunkModules: false,
modules: false
}
}))
}


app.use(express.static(__dirname + '/public/dist/'));
app.use(express.static(__dirname + '/src/browser/'));
app.use(express.static(__dirname + '/src/browser/main.js'));


authInitialize(app)

/* GET home page. */
app.get('*', function(req, res, next) {
res.sendFile(path.join(__dirname, 'src/browser/index.html'))
})

// Heroku by default set an ENV variable called PORT=443
// Heroku bydefault set an ENV variable called PORT=443
// so that you can access your site with https default port.
// Falback port will be 8080; basically for pre-production test in localhost
// You will use $ npm run prod for this
app.listen(process.env.PORT || 4000);
app.listen(process.env.PORT || 3000);
11 changes: 7 additions & 4 deletions artifacts/likeable-oryx.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ Lizz & Ryan
Setting up Knex & creating tables

## Project Specs
- [ ] [Issue #20:](https://github.com/GuildCrafts/interview-app/issues/20) Create Database Schema
- [ ] [Issue #1:](https://github.com/GuildCrafts/interview-app/issues/1) Create candidate table
- [ ] [Issue #21:](https://github.com/GuildCrafts/interview-app/issues/21) Create questions table

- [x] [Issue #20:](https://github.com/GuildCrafts/interview-app/issues/20) Create Database Schema
- [x] [Issue #1:](https://github.com/GuildCrafts/interview-app/issues/1) Create candidate table
- [x] [Issue #21:](https://github.com/GuildCrafts/interview-app/issues/21) Create questions table
- [x] [Issue #28:](https://github.com/GuildCrafts/interview-app/issues/28) Create go file
- [x] [Issue #29:](https://github.com/GuildCrafts/interview-app/issues/29) Setup Istanbul NYC
- [x] [Issue #42:](https://github.com/GuildCrafts/interview-app/issues/42) CRUD
- [x] [Issue #43:](https://github.com/GuildCrafts/interview-app/issues/43) Approver

## Quality
* Making sure all tests pass.
Expand Down
4 changes: 4 additions & 0 deletions artifacts/plaint_tiger.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## Specifications

- [ ] Issue #22 - Add react router as a dependency to the project.
- [ ] Issue #22 - Add react router to front end routes
Loading