Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
69e2173
Scaffolded file tree, npm init, installed dependencies
ccloops Jan 23, 2018
cf78caf
Refactored webpack to include production env
ccloops Jan 23, 2018
5d62ee4
Added redux middleware
ccloops Jan 24, 2018
6ed0691
Added reducers, built out main.js and routes.js
ccloops Jan 24, 2018
98108a3
Added auth.js to action directory
ccloops Jan 24, 2018
f1f95c4
Added an app directory with index.js
ccloops Jan 24, 2018
84d91c1
Added auth-form component
ccloops Jan 24, 2018
583c234
Added auth-redirect, dashboard, and landing components
ccloops Jan 24, 2018
21eabdb
Added cors to server.js
ccloops Jan 24, 2018
0868946
Updated README
ccloops Jan 24, 2018
3fb4ca3
Added minor styling
ccloops Jan 24, 2018
8729b18
Removed .withCredentials and login is now functional
ccloops Jan 24, 2018
e27261a
Merge pull request #1 from ccloops/trendly-fullstack
ccloops Jan 25, 2018
4eaa900
Added util.js middleware and client-profile reducer
ccloops Jan 25, 2018
0d3b216
Added client-profile action and updated auth action
ccloops Jan 25, 2018
d8e3363
Refactored app and auth-form to include verification
ccloops Jan 25, 2018
9050c54
Added a header component
ccloops Jan 25, 2018
b57e3fd
Added profile and profile-form, installed validator
ccloops Jan 25, 2018
da55c0f
Renamed file to cookie.js from util.js
ccloops Jan 25, 2018
f8fa5f6
Refactored code to include profile model parameters
ccloops Jan 25, 2018
1efc240
Added credentials true into the server, and adjusted variable typos
ccloops Jan 25, 2018
8fede01
Added Header to App so that it renders to the page
ccloops Jan 25, 2018
10d048d
Working on rendering the client profile
ccloops Jan 28, 2018
1d24a45
Added cookies to backend router
ccloops Jan 28, 2018
5ea02fb
Profiles are rendering to the page
ccloops Jan 28, 2018
37ce6f8
Testing reducers
ccloops Jan 28, 2018
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
5 changes: 5 additions & 0 deletions lab-catherine/trendly-backend/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**/node_modules/*
**/vendor/*
**/*.min.js
**/coverage/*
**/build/*
31 changes: 31 additions & 0 deletions lab-catherine/trendly-backend/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"env": {
"browser": true,
"node": true,
"commonjs": true,
"jest": true,
"es6": true
},
"globals": {
"err": true,
"req": true,
"res": true,
"next": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"rules": {
"no-console": "off",
"indent": [ "error", 2, { "SwitchCase": 1 } ],
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"space-infix-ops": ["error", {"int32Hint": false}],
"comma-dangle": ["error", "always-multiline"],
"semi": [ "error", "always" ]
}
}
119 changes: 119 additions & 0 deletions lab-catherine/trendly-backend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@

# Created by https://www.gitignore.io/api/node,linux,macos,visualstudiocode

### Linux ###
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### macOS ###
*.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
log.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env


### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history

# End of https://www.gitignore.io/api/node,linux,macos,visualstudiocode

# mongoDB
db/
18 changes: 18 additions & 0 deletions lab-catherine/trendly-backend/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: node_js
node_js:
- '8.4.0'
services:
- mongodb
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
env:
- CXX=g++-4.8
sudo: required
before_script: npm i
script:
- npm test
21 changes: 21 additions & 0 deletions lab-catherine/trendly-backend/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 Google-Trendly

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.
Loading