Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
d6eac5e
adding mockups
StevenS125 Sep 9, 2020
4d7eca4
added designs to readme
StevenS125 Sep 9, 2020
e86db0c
added frontend
StevenS125 Sep 9, 2020
c57992d
changed route and prop data to accomodate backend schema
StevenS125 Sep 15, 2020
1d850a7
changed placeholder image
StevenS125 Sep 15, 2020
4a68d78
Merge pull request #1 from StevenS125/dev
StevenS125 Sep 15, 2020
9fc9801
added backend skeleton
StevenS125 Sep 16, 2020
7837fff
added album entity and class with fields/object structure for api
StevenS125 Sep 16, 2020
b4d6f06
Added album repository interface and service classes
StevenS125 Sep 16, 2020
e264ab9
controller added and api up and running for album tables and plantagr…
StevenS125 Sep 16, 2020
2e38674
Merge pull request #2 from StevenS125/dev
StevenS125 Sep 16, 2020
146f6a5
added Post object with constructor
StevenS125 Sep 16, 2020
77abc18
Added Post Service and Repository
StevenS125 Sep 16, 2020
c2bfa99
Added Post Controller
StevenS125 Sep 16, 2020
483cff4
Merge pull request #3 from StevenS125/dev
StevenS125 Sep 16, 2020
0921c7f
added new add post and post components to add views
StevenS125 Sep 18, 2020
506615a
Merge pull request #4 from StevenS125/dev
StevenS125 Sep 18, 2020
8e32a0f
post's now work for creating a new post within an album
StevenS125 Sep 21, 2020
08aa21c
added responsebodies to update state on frontend of application
StevenS125 Sep 21, 2020
f6b24dd
added adaptive state updates through passed functions after post requ…
StevenS125 Sep 21, 2020
5385434
Merge pull request #5 from StevenS125/dev
StevenS125 Sep 21, 2020
e0cda4c
added Delete functionality to albums
StevenS125 Sep 22, 2020
0902f57
added put method for albums
StevenS125 Sep 22, 2020
806683e
Merge pull request #6 from StevenS125/dev
StevenS125 Sep 22, 2020
169c057
updated put call and putAlbums function
StevenS125 Sep 23, 2020
8169c7c
Merge pull request #7 from StevenS125/dev
StevenS125 Sep 23, 2020
8056e04
added putPost and DeletePost methods to update frontend on put and de…
StevenS125 Sep 23, 2020
a41ff06
Merge pull request #8 from StevenS125/dev
StevenS125 Sep 23, 2020
95229fa
added controller and service for aws file upload and deletion
StevenS125 Sep 24, 2020
514d696
Merge pull request #9 from StevenS125/dev
StevenS125 Sep 24, 2020
2154f0c
Documentation update
StevenS125 Sep 27, 2020
b913821
Merge pull request #10 from StevenS125/dev
StevenS125 Sep 27, 2020
8297fac
updated backend to accomodate mysql rds instance
StevenS125 Sep 29, 2020
5e7a42e
deleted seeds file
StevenS125 Sep 29, 2020
e7d1cd1
updated readme
StevenS125 Sep 29, 2020
ed71aee
Merge pull request #11 from StevenS125/dev
StevenS125 Sep 29, 2020
24a1b75
updated readme
StevenS125 Sep 29, 2020
c48e618
Merge pull request #12 from StevenS125/dev
StevenS125 Sep 29, 2020
3eec7b8
gif of login added
StevenS125 Sep 29, 2020
815ba6e
Merge pull request #13 from StevenS125/dev
StevenS125 Sep 29, 2020
624fbd5
added login gif
StevenS125 Sep 29, 2020
67525a9
Merge pull request #14 from StevenS125/dev
StevenS125 Sep 29, 2020
af71335
added album demo
StevenS125 Oct 1, 2020
0ae7ade
Merge pull request #15 from StevenS125/dev
StevenS125 Oct 1, 2020
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
Binary file added .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/casestudy.fullstack_webapplication.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 55 additions & 0 deletions .idea/codeStyles

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

458 changes: 458 additions & 0 deletions .idea/dbnavigator.xml

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Album_Demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Album_Page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions Frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
41 changes: 41 additions & 0 deletions Frontend/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "newpiranhatech",
"version": "0.1.0",
"private": true,
"dependencies": {
"@auth0/auth0-spa-js": "^1.6.4",
"@material-ui/core": "^4.9.3",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "^4.0.0-alpha.43",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"dotenv": "^8.2.0",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-router-dom": "^5.1.2",
"react-scripts": "3.4.0",
"rest": "^2.0.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
Binary file added Frontend/public/favicon.ico
Binary file not shown.
44 changes: 44 additions & 0 deletions Frontend/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.

Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Plant App</title>
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.283.1.min.js"></script>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.

You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.

To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
Binary file added Frontend/public/logo192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Frontend/public/logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions Frontend/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
3 changes: 3 additions & 0 deletions Frontend/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
38 changes: 38 additions & 0 deletions Frontend/src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
.App {
text-align: center;
}

.App-logo {
height: 40vmin;
pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}

.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}

.App-link {
color: #61dafb;
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
34 changes: 34 additions & 0 deletions Frontend/src/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import React from "react";

// New - import the React Router components, and the Profile page component
import { Router, Switch } from "react-router-dom";
import Profile from "./components/Profile";
import Home from './components/Home'
import history from "./utils/history";
import PrivateRoute from "./components/PrivateRoute";
import MenuAppBar from './components/Navigation';
import Test from "./components/Test";


function App() {


return (
<div className="App">
{/* Don't forget to include the history module */}
<Router history={history}>
<header>
<MenuAppBar />
</header>
<Switch>
<PrivateRoute path="/" exact component={Home} />
<PrivateRoute path="/profile" component={Profile} />
<PrivateRoute path="/test" component={Test} />
<PrivateRoute path="/feed" component={Test} />
</Switch>
</Router>
</div>
);
}

export default App;
9 changes: 9 additions & 0 deletions Frontend/src/App.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react';
import { render } from '@testing-library/react';
import App from './App';

test('renders learn react link', () => {
const { getByText } = render(<App />);
const linkElement = getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
});
4 changes: 4 additions & 0 deletions Frontend/src/auth_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"domain": "snydz.auth0.com",
"clientId": "0SXly64jNwN3WjtLjDvN8D2EgLxk2ohV"
}
Loading