├── .gitignore ├── 2019-03-07-08-45-13.png ├── 2019-03-07-08-46-19.png ├── 2019-03-07-20-15-25.png ├── README.md ├── client ├── .gitignore ├── README.md ├── firebase.json ├── package.json ├── public │ ├── CloudChart.png │ ├── index.html │ └── manifest.json ├── src │ ├── App.css │ ├── App.js │ ├── App.test.js │ ├── assets │ │ ├── CloudChart.png │ │ └── puffgreeting.png │ ├── components │ │ ├── Eow.css │ │ ├── admin-dashboard.js │ │ ├── eow-form.js │ │ ├── home.js │ │ ├── login.css │ │ ├── login.js │ │ ├── report-card.css │ │ ├── report-card.js │ │ └── user-dashboard.js │ ├── index.css │ ├── index.js │ ├── logo.svg │ └── serviceWorker.js └── yarn.lock └── server ├── .gitignore ├── .mvn └── wrapper │ ├── MavenWrapperDownloader.java │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml ├── src ├── main │ ├── java │ │ └── com │ │ │ └── lambdaschool │ │ │ └── lambdatable │ │ │ ├── LambdaTableApplication.java │ │ │ ├── bootstrap │ │ │ └── DataLoader.java │ │ │ ├── config │ │ │ ├── AuditingConfig.java │ │ │ ├── SecurityConfig.java │ │ │ ├── Swagger2Config.java │ │ │ └── WebMvcConfig.java │ │ │ ├── controllers │ │ │ ├── AdminController.java │ │ │ ├── AuthController.java │ │ │ ├── IndexController.java │ │ │ ├── ProjectManagerController.java │ │ │ ├── ReportController.java │ │ │ ├── TeacherController.java │ │ │ ├── TopicController.java │ │ │ └── UserController.java │ │ │ ├── exception │ │ │ ├── CustomResponseEntityExceptionHandler.java │ │ │ └── ResourceNotFoundException.java │ │ │ ├── model │ │ │ ├── ProjectManager.java │ │ │ ├── Report.java │ │ │ ├── Role.java │ │ │ ├── RoleName.java │ │ │ ├── Teacher.java │ │ │ ├── Topic.java │ │ │ ├── User.java │ │ │ └── audit │ │ │ │ └── DateAudit.java │ │ │ ├── payload │ │ │ ├── ApiResponse.java │ │ │ ├── JwtAuthenticationResponse.java │ │ │ ├── LoginRequest.java │ │ │ └── SignUpRequest.java │ │ │ ├── repositories │ │ │ ├── ProjectManagerRepository.java │ │ │ ├── ReportRepository.java │ │ │ ├── RoleRepository.java │ │ │ ├── TeacherRepository.java │ │ │ ├── TopicRepository.java │ │ │ └── UserRepository.java │ │ │ ├── security │ │ │ ├── CurrentUser.java │ │ │ ├── CustomUserDetailsService.java │ │ │ ├── JwtAuthenticationEntryPoint.java │ │ │ ├── JwtAuthenticationFilter.java │ │ │ ├── JwtTokenProvider.java │ │ │ └── UserPrincipal.java │ │ │ └── services │ │ │ ├── AuthService.java │ │ │ ├── MapValidationErrorService.java │ │ │ ├── ReportService.java │ │ │ └── UserService.java │ └── resources │ │ ├── application.properties │ │ └── data.sql └── test │ └── java │ └── com │ └── lambdaschool │ └── lambdatable │ └── LambdaTableApplicationTests.java └── system.properties /.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | /target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | 5 | ### STS ### 6 | .apt_generated 7 | .classpath 8 | .factorypath 9 | .project 10 | .settings 11 | .springBeans 12 | .sts4-cache 13 | 14 | ### IntelliJ IDEA ### 15 | .idea 16 | *.iws 17 | *.iml 18 | *.ipr 19 | 20 | ### NetBeans ### 21 | /nbproject/private/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ 26 | /build/ 27 | -------------------------------------------------------------------------------- /2019-03-07-08-45-13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harrisonbrock/lambda-table/73eef3e6a9e11c204842625248aa68e396cc477f/2019-03-07-08-45-13.png -------------------------------------------------------------------------------- /2019-03-07-08-46-19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harrisonbrock/lambda-table/73eef3e6a9e11c204842625248aa68e396cc477f/2019-03-07-08-46-19.png -------------------------------------------------------------------------------- /2019-03-07-20-15-25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harrisonbrock/lambda-table/73eef3e6a9e11c204842625248aa68e396cc477f/2019-03-07-20-15-25.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Cloud Chart 2 | 3 | Cloud Chart is our version of Airtable which is a spreadsheet-database hybrid, with the features of a database but applied to a spreadsheet. 4 | 5 | ![Logo](2019-03-07-08-46-19.png) 6 | 7 | 60 | 61 | ## Built With 62 | 63 | * [React](https://reactjs.org/) - The web framework used for front end 64 | * [Spring](https://spring.io/projects/spring-framework) - The web framework used for back end 65 | * [Maven](https://maven.apache.org/) - Dependency Management 66 | * [Axios](https://github.com/axios/axios) - Promise based HTTP client for browser and node.js 67 | * [h2](http://www.h2database.com/html/main.html) - Database for development purposes 68 | * [MySQL](https://www.mysql.com/) - Database for production purposes 69 | * [Spring Security Core](https://mvnrepository.com/artifact/org.springframework.security/spring-security-core) - Spring Security & Authentication 70 | * [Spring Security Web](https://mvnrepository.com/artifact/org.springframework.security/spring-security-web) - Spring Security 71 | * [Swagger](https://swagger.io/) - Swagger Documentation 72 | 73 | 74 | ## Authors 75 | 76 | * **Cruise Brantley** - *Developer* - [LinkedIn](https://www.linkedin.com/in/cruisebrantley/) 77 | * **Harrison Brock** - *Developer* - [LinkedIn](https://www.linkedin.com/in/harrisonbrock/) 78 | * **Kaitlyn Flynn** - *Developer* - [LinkedIn](https://www.linkedin.com/in/kaitlynflynn/) 79 | 80 | ![DevTeam](2019-03-07-08-45-13.png) 81 | 82 | 83 | ## License 84 | 85 | This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details 86 | 87 | ## Acknowledgments 88 | 89 | * Inspired by Airtable to create our own version 90 | * We hope to continue building and expanding features 91 | 92 | ![PuffJoke](2019-03-07-20-15-25.png) -------------------------------------------------------------------------------- /client/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | yarn.lock 25 | -------------------------------------------------------------------------------- /client/README.md: -------------------------------------------------------------------------------- 1 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 2 | 3 | ## Available Scripts 4 | 5 | In the project directory, you can run: 6 | 7 | ### `npm start` 8 | 9 | Runs the app in the development mode.
10 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser. 11 | 12 | The page will reload if you make edits.
13 | You will also see any lint errors in the console. 14 | 15 | ### `npm test` 16 | 17 | Launches the test runner in the interactive watch mode.
18 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 19 | 20 | ### `npm run build` 21 | 22 | Builds the app for production to the `build` folder.
23 | It correctly bundles React in production mode and optimizes the build for the best performance. 24 | 25 | The build is minified and the filenames include the hashes.
26 | Your app is ready to be deployed! 27 | 28 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 29 | 30 | ### `npm run eject` 31 | 32 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!** 33 | 34 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 35 | 36 | Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. 37 | 38 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. 39 | 40 | ## Learn More 41 | 42 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 43 | 44 | To learn React, check out the [React documentation](https://reactjs.org/). 45 | 46 | ### Code Splitting 47 | 48 | This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting 49 | 50 | ### Analyzing the Bundle Size 51 | 52 | This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size 53 | 54 | ### Making a Progressive Web App 55 | 56 | This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app 57 | 58 | ### Advanced Configuration 59 | 60 | This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration 61 | 62 | ### Deployment 63 | 64 | This section has moved here: https://facebook.github.io/create-react-app/docs/deployment 65 | 66 | ### `npm run build` fails to minify 67 | 68 | This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify 69 | -------------------------------------------------------------------------------- /client/firebase.json: -------------------------------------------------------------------------------- 1 | { 2 | "hosting": { 3 | "public": "build", 4 | "ignore": [ 5 | "firebase.json", 6 | "**/.*", 7 | "**/node_modules/**" 8 | ], 9 | "rewrites": [ 10 | { 11 | "source": "**", 12 | "destination": "/index.html" 13 | } 14 | ] 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /client/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "client", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "axios": "^0.18.0", 7 | "moment": "^2.24.0", 8 | "react": "^16.8.3", 9 | "react-dom": "^16.8.3", 10 | "react-router-dom": "^4.3.1", 11 | "react-scripts": "2.1.5" 12 | }, 13 | "scripts": { 14 | "start": "react-scripts start", 15 | "build": "react-scripts build", 16 | "test": "react-scripts test", 17 | "eject": "react-scripts eject" 18 | }, 19 | "eslintConfig": { 20 | "extends": "react-app" 21 | }, 22 | "browserslist": [ 23 | ">0.2%", 24 | "not dead", 25 | "not ie <= 11", 26 | "not op_mini all" 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /client/public/CloudChart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harrisonbrock/lambda-table/73eef3e6a9e11c204842625248aa68e396cc477f/client/public/CloudChart.png -------------------------------------------------------------------------------- /client/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 10 | 11 | 15 | 16 | 25 | Cloud Chart 26 | 27 | 28 | 29 |
30 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /client/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "Cloud Chart", 3 | "name": "Cloud Chart", 4 | "icons": [ 5 | { 6 | "src": "CloudChart.png", 7 | "sizes": "any" 8 | } 9 | ], 10 | "start_url": ".", 11 | "display": "standalone", 12 | "theme_color": "#000000", 13 | "background_color": "#ffffff" 14 | } 15 | -------------------------------------------------------------------------------- /client/src/App.css: -------------------------------------------------------------------------------- 1 | /*------------------- 2 | General 3 | -------------------*/ 4 | .App { 5 | text-align: center; 6 | padding: 10px; 7 | background-color: lightgray; 8 | /* background-image: url("https://i.imgur.com/qVwaQE3.png"); */ 9 | background-image: url("https://d2v9y0dukr6mq2.cloudfront.net/video/thumbnail/itCjTBE/videoblocks-grey-and-white-tech-geometric-motion-background-video-seamless-looping-animation-ultra-hd-4k-3840x2160_rlto8zupg_thumbnail-full01.png"); 10 | background-size: cover; 11 | position: fixed; 12 | top: 0; 13 | left: 0; 14 | bottom: 0; 15 | right: 0; 16 | overflow: auto; 17 | background-repeat: repeat; 18 | } 19 | 20 | .App-header { 21 | background-color: #282c34; 22 | min-height: 100vh; 23 | display: flex; 24 | flex-direction: column; 25 | align-items: center; 26 | justify-content: center; 27 | font-size: calc(10px + 2vmin); 28 | color: white; 29 | } 30 | 31 | /* .table-header { 32 | background-color: white; 33 | max-width: 50vmin; 34 | height: 20vmin; 35 | margin: auto; 36 | padding: 5px; 37 | } */ 38 | 39 | .App-link { 40 | color: #61dafb; 41 | } 42 | 43 | /*------------------- 44 | Old React Graphics 45 | -------------------*/ 46 | 47 | /* @keyframes App-logo-spin { 48 | from { 49 | transform: rotate(0deg); 50 | } 51 | to { 52 | transform: rotate(360deg); 53 | } 54 | } */ 55 | 56 | /* .App-logo { 57 | animation: App-logo-spin infinite 20s linear; 58 | height: 20vmin; 59 | pointer-events: none; 60 | } */ 61 | -------------------------------------------------------------------------------- /client/src/App.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import './App.css'; 3 | import { Route } from "react-router-dom"; 4 | import Eow from './components/eow-form'; 5 | import Home from './components/home'; 6 | import Login from './components/login'; 7 | import Admin from './components/admin-dashboard'; 8 | import User from './components/user-dashboard'; 9 | 10 | class App extends Component { 11 | render() { 12 | return ( 13 |
14 | 15 | 16 | 17 | 18 | 19 |
20 | ); 21 | } 22 | } 23 | 24 | export default App; 25 | -------------------------------------------------------------------------------- /client/src/App.test.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import App from './App'; 4 | 5 | it('renders without crashing', () => { 6 | const div = document.createElement('div'); 7 | ReactDOM.render(, div); 8 | ReactDOM.unmountComponentAtNode(div); 9 | }); 10 | -------------------------------------------------------------------------------- /client/src/assets/CloudChart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harrisonbrock/lambda-table/73eef3e6a9e11c204842625248aa68e396cc477f/client/src/assets/CloudChart.png -------------------------------------------------------------------------------- /client/src/assets/puffgreeting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/harrisonbrock/lambda-table/73eef3e6a9e11c204842625248aa68e396cc477f/client/src/assets/puffgreeting.png -------------------------------------------------------------------------------- /client/src/components/Eow.css: -------------------------------------------------------------------------------- 1 | /*------------------- 2 | Cloud Chart Logo 3 | -------------------*/ 4 | 5 | .logo { 6 | background: url("../assets/CloudChart.png") no-repeat top center; 7 | background-size: contain; 8 | height: 98px; 9 | width: 260px; 10 | padding: 5px; 11 | margin: auto; 12 | } 13 | 14 | 15 | /*------------------- 16 | Input Boxes 17 | -------------------*/ 18 | 19 | .textbox { 20 | border: 1px solid rgba(50, 111, 224, 0.479); 21 | width: 275px; 22 | height: 100px; 23 | box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 24 | 0 6px 20px 0 rgba(0, 0, 0, 0.19); 25 | } 26 | 27 | /*------------------- 28 | Submit Button 29 | -------------------*/ 30 | 31 | .submit-btn { 32 | display: inline-block; 33 | padding: 10px 25px; 34 | font-size: 15px; 35 | cursor: pointer; 36 | text-align: center; 37 | text-decoration: none; 38 | outline: none; 39 | color: #fff; 40 | background-color: #3c8eec; 41 | border: none; 42 | border-radius: 15px; 43 | box-shadow: 0 9px #999; 44 | margin-top: 15px; 45 | margin-bottom: 15px; 46 | } 47 | 48 | .submit-btn:hover { 49 | background-color: #3c8eec; 50 | } 51 | 52 | .submit-btn:active { 53 | background-color: #3c8eec; 54 | box-shadow: 0 5px #666; 55 | transform: translateY(4px); 56 | } -------------------------------------------------------------------------------- /client/src/components/admin-dashboard.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import Axios from "axios"; 3 | import ReportCard from "./report-card"; 4 | import { Link } from "react-router-dom"; 5 | 6 | class Admin extends Component { 7 | state = { 8 | reports: [] 9 | }; 10 | 11 | componentDidMount() { 12 | if (!localStorage.getItem("token")) this.props.history.push("/login"); 13 | Axios.get("https://cloud-chart.herokuapp.com/api/admin/reports", { 14 | headers: { Authorization: "Bearer " + localStorage.getItem("token") } 15 | }) 16 | .then(response => { 17 | console.log(response.data); 18 | this.setState({ reports: response.data }); 19 | }) 20 | .catch(err => console.log(err)); 21 | } 22 | 23 | render() { 24 | return ( 25 |
26 |
27 |
28 |
29 |
30 | {this.state.reports.map((report, index) => ( 31 | 35 | this.componentDidMount()} 39 | /> 40 | 41 | ))} 42 |
43 | {/* 44 | Create Weekly Report 45 | */} 46 |
47 | ); 48 | } 49 | } 50 | 51 | export default Admin; 52 | -------------------------------------------------------------------------------- /client/src/components/eow-form.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import "./Eow.css"; 3 | import Axios from "axios"; 4 | 5 | class Eow extends Component { 6 | state = { 7 | threeWords: "", 8 | wentWell: "", 9 | goneBetter: "", 10 | workedOn: "", 11 | projectURL: "", 12 | importedState: false, 13 | admin: false 14 | }; 15 | componentDidMount() { 16 | if (!localStorage.getItem("token")) this.props.history.push("/login"); 17 | if (this.props.location.state !== undefined) { 18 | this.setState({ 19 | threeWords: this.props.location.state.report.describeWeek || "", 20 | wentWell: this.props.location.state.report.whatWentWellThisWeek || "", 21 | goneBetter: 22 | this.props.location.state.report.whatCouldHaveWentBetter || "", 23 | workedOn: 24 | this.props.location.state.report.whatDidYouWorkOnThisWeek || "", 25 | projectURL: this.props.location.state.report.urlSubmission || "", 26 | importedState: true, 27 | admin: this.props.location.state.admin 28 | }); //if state is sent in from component calling eow 29 | } 30 | } 31 | onInputChange = e => { 32 | this.setState({ [e.target.name]: e.target.value }); 33 | }; 34 | 35 | render() { 36 | return ( 37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |

Describe this week in 3 words

45 |