├── backend
├── Procfile
├── models
│ ├── user.model.js
│ └── exercise.model.js
├── package.json
├── routes
│ ├── users.js
│ └── exercises.js
└── server.js
├── client
├── public
│ ├── _redirects
│ ├── index.html
│ └── images
│ │ └── undraw_page_not_found_su7k.svg
├── src
│ ├── index.js
│ ├── pages
│ │ ├── Home.js
│ │ ├── Error.css
│ │ ├── Error.js
│ │ ├── user.js
│ │ ├── Dashboard.js
│ │ └── Exercises.js
│ ├── components
│ │ ├── Toolbar.js
│ │ ├── AppBar.js
│ │ ├── withRoot.js
│ │ ├── Button.js
│ │ ├── Typography.js
│ │ ├── ProductHeroLayout.js
│ │ ├── ProductHero.js
│ │ ├── AppAppBar.js
│ │ └── theme.js
│ ├── App.js
│ └── images
│ │ └── undraw_page_not_found_su7k.svg
├── package.json
└── .gitignore
├── .gitignore
├── README.md
└── LICENSE
/backend/Procfile:
--------------------------------------------------------------------------------
1 | web: npm run start
--------------------------------------------------------------------------------
/client/public/_redirects:
--------------------------------------------------------------------------------
1 |
2 | /* /index.html 200
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | node_modules
3 | node_modules
4 |
--------------------------------------------------------------------------------
/client/src/index.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import ReactDOM from "react-dom";
3 | import App from "./App";
4 |
5 | ReactDOM.render(, document.getElementById("root"));
6 |
--------------------------------------------------------------------------------
/client/src/pages/Home.js:
--------------------------------------------------------------------------------
1 | import withRoot from "../components/withRoot";
2 | import React from "react";
3 | import ProductHero from "../components/ProductHero";
4 |
5 | function Index() {
6 | return (
7 |
8 |
9 |
10 | );
11 | }
12 |
13 | export default withRoot(Index);
14 |
--------------------------------------------------------------------------------
/client/src/components/Toolbar.js:
--------------------------------------------------------------------------------
1 | import { withStyles } from "@material-ui/core/styles";
2 | import Toolbar from "@material-ui/core/Toolbar";
3 |
4 | export const styles = (theme) => ({
5 | root: {
6 | height: 64,
7 | [theme.breakpoints.up("sm")]: {
8 | height: 70,
9 | },
10 | },
11 | });
12 |
13 | export default withStyles(styles)(Toolbar);
14 |
--------------------------------------------------------------------------------
/backend/models/user.model.js:
--------------------------------------------------------------------------------
1 | const mongoose = require('mongoose');
2 |
3 | const Schema = mongoose.Schema;
4 |
5 | const userSchema = new Schema({
6 | username: {
7 | type: String,
8 | required: true,
9 | unique: true,
10 | trim: true,
11 | minlength: 3
12 | },
13 | }, {
14 | timestamps: true,
15 | });
16 |
17 | const User = mongoose.model('User', userSchema);
18 |
19 | module.exports = User;
--------------------------------------------------------------------------------
/backend/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "backend",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "start": "nodemon server.js"
8 | },
9 | "keywords": [],
10 | "author": "",
11 | "license": "ISC",
12 | "dependencies": {
13 | "body-parser": "^1.19.0",
14 | "cors": "^2.8.5",
15 | "dotenv": "^8.0.0",
16 | "express": "^4.16.4",
17 | "mongoose": "^5.5.7",
18 | "nodemon": "^2.0.7"
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/backend/models/exercise.model.js:
--------------------------------------------------------------------------------
1 | const mongoose = require('mongoose');
2 |
3 | const Schema = mongoose.Schema;
4 |
5 | const exerciseSchema = new Schema({
6 | username: { type: String, required: true },
7 | description: { type: String, required: true },
8 | duration: { type: Number, required: true },
9 | date: { type: Date, required: true },
10 | }, {
11 | timestamps: true,
12 | });
13 |
14 | const Exercise = mongoose.model('Exercise', exerciseSchema);
15 |
16 | module.exports = Exercise;
--------------------------------------------------------------------------------
/client/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | Fitness Tracker
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/client/src/pages/Error.css:
--------------------------------------------------------------------------------
1 | .err {
2 | text-align: center;
3 | background-color: #ccc;
4 | margin: 0;
5 | padding: 25px;
6 | color: #444;
7 | max-width: 100vw;
8 | height: 90vh;
9 | display: flex;
10 | align-items: center;
11 | justify-content: center;
12 | flex-direction: column;
13 | }
14 | .err h2 {
15 | font-size: 30px;
16 | margin-bottom:10px;
17 | }
18 | a{
19 | text-decoration:none;
20 | }
21 | @media (max-width:767px){
22 | .err h2 {
23 | font-size: 20px;
24 | }
25 | }
--------------------------------------------------------------------------------
/client/src/components/AppBar.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import PropTypes from "prop-types";
3 | import { withStyles } from "@material-ui/core/styles";
4 | import MuiAppBar from "@material-ui/core/AppBar";
5 |
6 | const styles = (theme) => ({
7 | root: {
8 | color: theme.palette.common.white,
9 | },
10 | });
11 |
12 | function AppBar(props) {
13 | return ;
14 | }
15 |
16 | AppBar.propTypes = {
17 | classes: PropTypes.object.isRequired,
18 | };
19 |
20 | export default withStyles(styles)(AppBar);
21 |
--------------------------------------------------------------------------------
/backend/routes/users.js:
--------------------------------------------------------------------------------
1 | const router = require('express').Router();
2 | let User = require('../models/user.model');
3 |
4 | router.route('/').get((req, res) => {
5 | User.find()
6 | .then(users => res.json(users))
7 | .catch(err => res.status(400).json('Error: ' + err));
8 | });
9 |
10 | router.route('/add').post((req, res) => {
11 | const username = req.body.username;
12 |
13 | const newUser = new User({username});
14 |
15 | newUser.save()
16 | .then(() => res.json('User added!'))
17 | .catch(err => res.status(400).json('Error: ' + err));
18 | });
19 |
20 | module.exports = router;
--------------------------------------------------------------------------------
/client/src/components/withRoot.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { ThemeProvider } from "@material-ui/core/styles";
3 | import CssBaseline from "@material-ui/core/CssBaseline";
4 | import theme from "./theme";
5 |
6 | export default function withRoot(Component) {
7 | function WithRoot(props) {
8 | return (
9 |
10 | {/* CssBaseline kickstart an elegant, consistent, and simple baseline to build upon. */}
11 |
12 |
13 |
14 | );
15 | }
16 |
17 | return WithRoot;
18 | }
19 |
--------------------------------------------------------------------------------
/client/src/pages/Error.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { Link } from "react-router-dom";
3 | import Button from "@material-ui/core/Button";
4 | import "./Error.css";
5 |
6 | const Error = () => {
7 | return (
8 |
9 |

14 |
This Page Is Not On The Map.
15 |
16 |
19 |
20 |
21 | );
22 | };
23 |
24 | export default Error;
25 |
--------------------------------------------------------------------------------
/client/src/components/Button.js:
--------------------------------------------------------------------------------
1 | import { withStyles } from "@material-ui/core/styles";
2 | import Button from "@material-ui/core/Button";
3 |
4 | export default withStyles((theme) => ({
5 | root: {
6 | borderRadius: 0,
7 | fontWeight: theme.typography.fontWeightMedium,
8 | fontFamily: theme.typography.fontFamilySecondary,
9 | padding: theme.spacing(2, 4),
10 | fontSize: theme.typography.pxToRem(14),
11 | boxShadow: "none",
12 | "&:active, &:focus": {
13 | boxShadow: "none",
14 | },
15 | },
16 | sizeSmall: {
17 | padding: theme.spacing(1, 3),
18 | fontSize: theme.typography.pxToRem(13),
19 | },
20 | sizeLarge: {
21 | padding: theme.spacing(2, 5),
22 | fontSize: theme.typography.pxToRem(16),
23 | },
24 | }))(Button);
25 |
--------------------------------------------------------------------------------
/backend/server.js:
--------------------------------------------------------------------------------
1 | const express = require("express");
2 | const cors = require("cors");
3 | require("dotenv/config");
4 | const mongoose = require("mongoose");
5 |
6 | const app = express();
7 | const port = process.env.PORT || 5000;
8 |
9 | app.use(cors());
10 | app.use(express.json());
11 | app.get("/", (req, res) => {
12 | res.send("Hello to Fitness Tracker API");
13 | });
14 | mongoose.connect(
15 | process.env.MONGO_URI,
16 | { useNewUrlParser: true, useCreateIndex: true, useUnifiedTopology: true },
17 | () => console.log("Database connected")
18 | );
19 |
20 | const exercisesRouter = require("./routes/exercises");
21 | const usersRouter = require("./routes/users");
22 |
23 | app.use("/exercises", exercisesRouter);
24 | app.use("/users", usersRouter);
25 |
26 | app.listen(port, () => {
27 | console.log(`Server is running on port: ${port}`);
28 | });
29 |
--------------------------------------------------------------------------------
/client/src/App.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
3 | import AppAppBar from "./components/AppAppBar";
4 | import Dashboard from "./pages/Dashboard";
5 | import Error from "./pages/Error";
6 | import Exercises from "./pages/Exercises";
7 | import Index from "./pages/Home";
8 | import User from "./pages/user";
9 | import withRoot from "./components/withRoot";
10 |
11 | function App() {
12 | return (
13 | <>
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | >
25 | );
26 | }
27 | export default withRoot(App);
28 |
--------------------------------------------------------------------------------
/client/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "mui",
3 | "version": "0.1.0",
4 | "private": true,
5 | "dependencies": {
6 | "@material-ui/core": "^4.11.4",
7 | "@testing-library/jest-dom": "^5.12.0",
8 | "@testing-library/react": "^11.2.6",
9 | "@testing-library/user-event": "^12.8.3",
10 | "axios": "^0.21.1",
11 | "react": "^17.0.2",
12 | "react-dom": "^17.0.2",
13 | "react-router-dom": "^5.2.0",
14 | "react-scripts": "4.0.3",
15 | "web-vitals": "^1.1.2"
16 | },
17 | "scripts": {
18 | "start": "react-scripts start",
19 | "build": "react-scripts build",
20 | "test": "react-scripts test",
21 | "eject": "react-scripts eject"
22 | },
23 | "eslintConfig": {
24 | "extends": [
25 | "react-app",
26 | "react-app/jest"
27 | ]
28 | },
29 | "browserslist": {
30 | "production": [
31 | ">0.2%",
32 | "not dead",
33 | "not op_mini all"
34 | ],
35 | "development": [
36 | "last 1 chrome version",
37 | "last 1 firefox version",
38 | "last 1 safari version"
39 | ]
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/backend/routes/exercises.js:
--------------------------------------------------------------------------------
1 | const router = require('express').Router();
2 | let Exercise = require('../models/exercise.model');
3 |
4 | router.route('/').get((req, res) => {
5 | Exercise.find()
6 | .then(exercises => res.json(exercises))
7 | .catch(err => res.status(400).json('Error: ' + err));
8 | });
9 |
10 | router.route('/add').post((req, res) => {
11 | const username = req.body.username;
12 | const description = req.body.description;
13 | const duration = Number(req.body.duration);
14 | const date = Date.parse(req.body.date);
15 |
16 | const newExercise = new Exercise({
17 | username,
18 | description,
19 | duration,
20 | date,
21 | });
22 |
23 | newExercise.save()
24 | .then(() => res.json('Exercise added!'))
25 | .catch(err => res.status(400).json('Error: ' + err));
26 | });
27 |
28 | router.route('/:id').get((req, res) => {
29 | Exercise.findById(req.params.id)
30 | .then(exercise => res.json(exercise))
31 | .catch(err => res.status(400).json('Error: ' + err));
32 | });
33 |
34 | router.route('/:id').delete((req, res) => {
35 | Exercise.findByIdAndDelete(req.params.id)
36 | .then(() => res.json('Exercise deleted.'))
37 | .catch(err => res.status(400).json('Error: ' + err));
38 | });
39 |
40 | router.route('/update/:id').post((req, res) => {
41 | Exercise.findById(req.params.id)
42 | .then(exercise => {
43 | exercise.username = req.body.username;
44 | exercise.description = req.body.description;
45 | exercise.duration = Number(req.body.duration);
46 | exercise.date = Date.parse(req.body.date);
47 |
48 | exercise.save()
49 | .then(() => res.json('Exercise updated!'))
50 | .catch(err => res.status(400).json('Error: ' + err));
51 | })
52 | .catch(err => res.status(400).json('Error: ' + err));
53 | });
54 |
55 | module.exports = router;
--------------------------------------------------------------------------------
/client/src/components/Typography.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import PropTypes from "prop-types";
3 | import { withStyles } from "@material-ui/core/styles";
4 | import { capitalize } from "@material-ui/core/utils";
5 | import MuiTypography from "@material-ui/core/Typography";
6 |
7 | const styles = (theme) => ({
8 | markedH2Center: {
9 | height: 4,
10 | width: 73,
11 | display: "block",
12 | margin: `${theme.spacing(1)}px auto 0`,
13 | backgroundColor: theme.palette.secondary.main,
14 | },
15 | markedH3Center: {
16 | height: 4,
17 | width: 55,
18 | display: "block",
19 | margin: `${theme.spacing(1)}px auto 0`,
20 | backgroundColor: theme.palette.secondary.main,
21 | },
22 | markedH4Center: {
23 | height: 4,
24 | width: 55,
25 | display: "block",
26 | margin: `${theme.spacing(1)}px auto 0`,
27 | backgroundColor: theme.palette.secondary.main,
28 | },
29 | markedH6Left: {
30 | height: 2,
31 | width: 28,
32 | display: "block",
33 | marginTop: theme.spacing(0.5),
34 | background: "currentColor",
35 | },
36 | });
37 |
38 | const variantMapping = {
39 | h1: "h1",
40 | h2: "h1",
41 | h3: "h1",
42 | h4: "h1",
43 | h5: "h3",
44 | h6: "h2",
45 | subtitle1: "h3",
46 | };
47 |
48 | function Typography(props) {
49 | const { children, classes, marked = false, variant, ...other } = props;
50 |
51 | return (
52 |
53 | {children}
54 | {marked ? (
55 |
60 | ) : null}
61 |
62 | );
63 | }
64 |
65 | Typography.propTypes = {
66 | children: PropTypes.node,
67 | classes: PropTypes.object.isRequired,
68 | marked: PropTypes.oneOf([false, "center", "left"]),
69 | variant: PropTypes.string,
70 | };
71 |
72 | export default withStyles(styles)(Typography);
73 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Fitness Tracker
2 |
3 | ## Description
4 |
5 | This is a Fitness Tracker built using MERN stack. It facilitates one to add users and record their date and duration of performing particular fitness activity.Activity can also be deleted. This web application is built using MongoDB,Express,Nodejs,React and Material UI. Images used in this application are being taken from [Unsplash website](https://unsplash.com).
6 |
7 | ## Demo
8 |
9 | 👉 [Link](https://serene-volhard-1843cb.netlify.app/)
10 |
11 | Backend Heroku Link-https://fitness-tracker-mern.herokuapp.com/
12 |
13 | [Users](https://fitness-tracker-mern.herokuapp.com/users)
14 |
15 | [Exercises](https://fitness-tracker-mern.herokuapp.com/exercises)
16 |
17 | ## Screenshots
18 |
19 | Homepage
20 | 
21 |
22 | Create user
23 | 
24 |
25 | Record Fitness Activity
26 | 
27 |
28 | Fitness Activity Dashboard
29 | 
30 |
31 | 404 Error page
32 | 
33 |
34 | ## Installation
35 |
36 | Step 1
37 | 🍴 Fork this repo!
38 |
39 | Step 2
40 | 👯 Clone this repo to your local machine using https://github.com/kritika27/fitness-tracker-mern-stack-app.git
41 |
42 | Step 3
43 | HACK AWAY! 🔨🔨🔨
44 |
45 | ## Available Scripts
46 |
47 | In the project directory, you can run:
48 |
49 | `npm start`
50 |
51 | Runs the app in the development mode.
52 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
53 |
54 | ## LICENSE
55 |
56 | Apache License.
57 |
58 | Made with ❤
59 |
--------------------------------------------------------------------------------
/client/src/components/ProductHeroLayout.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import PropTypes from "prop-types";
3 | import clsx from "clsx";
4 | import { withStyles } from "@material-ui/core/styles";
5 | import Container from "@material-ui/core/Container";
6 |
7 | const styles = (theme) => ({
8 | root: {
9 | color: theme.palette.common.white,
10 | position: "relative",
11 | display: "flex",
12 | alignItems: "center",
13 | [theme.breakpoints.up("sm")]: {
14 | height: "80vh",
15 | minHeight: 500,
16 | maxHeight: 1300,
17 | },
18 | },
19 | container: {
20 | marginTop: theme.spacing(3),
21 | marginBottom: theme.spacing(14),
22 | display: "flex",
23 | flexDirection: "column",
24 | alignItems: "center",
25 | },
26 | backdrop: {
27 | position: "absolute",
28 | left: 0,
29 | right: 0,
30 | top: 0,
31 | bottom: 0,
32 | backgroundColor: theme.palette.common.black,
33 | opacity: 0.5,
34 | zIndex: -1,
35 | },
36 | background: {
37 | position: "absolute",
38 | left: 0,
39 | right: 0,
40 | top: 0,
41 | bottom: 0,
42 | backgroundSize: "cover",
43 | backgroundRepeat: "no-repeat",
44 | zIndex: -2,
45 | },
46 | arrowDown: {
47 | position: "absolute",
48 | bottom: theme.spacing(4),
49 | },
50 | });
51 |
52 | function ProductHeroLayout(props) {
53 | const { backgroundClassName, children, classes } = props;
54 |
55 | return (
56 |
57 |
58 |
64 | {children}
65 |
66 |
67 |
68 |
69 | );
70 | }
71 |
72 | ProductHeroLayout.propTypes = {
73 | backgroundClassName: PropTypes.string.isRequired,
74 | children: PropTypes.node.isRequired,
75 | classes: PropTypes.object.isRequired,
76 | };
77 |
78 | export default withStyles(styles)(ProductHeroLayout);
79 |
--------------------------------------------------------------------------------
/client/src/components/ProductHero.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import PropTypes from "prop-types";
3 | import { withStyles } from "@material-ui/core/styles";
4 | import Button from "./Button";
5 | import Typography from "./Typography";
6 | import ProductHeroLayout from "./ProductHeroLayout";
7 |
8 | const backgroundImage =
9 | "https://images.unsplash.com/photo-1551672746-89991811c186?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=889&q=80";
10 |
11 | const styles = (theme) => ({
12 | background: {
13 | backgroundImage: `url(${backgroundImage})`,
14 | backgroundColor: "#7fc7d9", // Average color of the background image.
15 | backgroundPosition: "center",
16 | },
17 | button: {
18 | minWidth: 200,
19 | },
20 | h5: {
21 | marginBottom: theme.spacing(4),
22 | marginTop: theme.spacing(4),
23 | [theme.breakpoints.up("sm")]: {
24 | marginTop: theme.spacing(10),
25 | },
26 | },
27 | more: {
28 | marginTop: theme.spacing(2),
29 | },
30 | });
31 |
32 | function ProductHero(props) {
33 | const { classes } = props;
34 |
35 | return (
36 |
37 |
42 |
43 | Stay Fit With Us
44 |
45 |
51 | Record your fitness activities and stay consistent in your journey.
52 |
53 |
63 |
64 | Start Now
65 |
66 |
67 | );
68 | }
69 |
70 | ProductHero.propTypes = {
71 | classes: PropTypes.object.isRequired,
72 | };
73 |
74 | export default withStyles(styles)(ProductHero);
75 |
--------------------------------------------------------------------------------
/client/src/components/AppAppBar.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import PropTypes from "prop-types";
3 | import clsx from "clsx";
4 | import { withStyles } from "@material-ui/core/styles";
5 | import Link from "@material-ui/core/Link";
6 | import AppBar from "./AppBar";
7 | import Toolbar, { styles as toolbarStyles } from "./Toolbar";
8 |
9 | const styles = (theme) => ({
10 | title: {
11 | fontSize: 24,
12 | },
13 | placeholder: toolbarStyles(theme).root,
14 | toolbar: {
15 | justifyContent: "space-between",
16 | },
17 | left: {
18 | flex: 1,
19 | },
20 | leftLinkActive: {
21 | color: theme.palette.common.white,
22 | },
23 | right: {
24 | flex: 1,
25 | display: "flex",
26 | justifyContent: "flex-end",
27 | },
28 | rightLink: {
29 | fontSize: 16,
30 | color: theme.palette.common.white,
31 | marginLeft: theme.spacing(3),
32 | },
33 | linkSecondary: {
34 | color: theme.palette.secondary.main,
35 | },
36 | });
37 |
38 | function AppAppBar(props) {
39 | const { classes } = props;
40 |
41 | return (
42 |
43 |
44 |
45 |
46 |
53 | {"Fitkit"}
54 |
55 |
56 |
62 | {"Dashboard"}
63 |
64 |
71 | {"User"}
72 |
73 |
79 | {"Exercise"}
80 |
81 |
82 |
83 |
84 |
85 |
86 | );
87 | }
88 |
89 | AppAppBar.propTypes = {
90 | classes: PropTypes.object.isRequired,
91 | };
92 |
93 | export default withStyles(styles)(AppAppBar);
94 |
--------------------------------------------------------------------------------
/client/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | # Created by https://www.toptal.com/developers/gitignore/api/react,node
3 | # Edit at https://www.toptal.com/developers/gitignore?templates=react,node
4 |
5 | ### Node ###
6 | # Logs
7 | logs
8 | *.log
9 | npm-debug.log*
10 | yarn-debug.log*
11 | yarn-error.log*
12 | lerna-debug.log*
13 |
14 | # Diagnostic reports (https://nodejs.org/api/report.html)
15 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
16 |
17 | # Runtime data
18 | pids
19 | *.pid
20 | *.seed
21 | *.pid.lock
22 |
23 | # Directory for instrumented libs generated by jscoverage/JSCover
24 | lib-cov
25 |
26 | # Coverage directory used by tools like istanbul
27 | coverage
28 | *.lcov
29 |
30 | # nyc test coverage
31 | .nyc_output
32 |
33 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
34 | .grunt
35 |
36 | # Bower dependency directory (https://bower.io/)
37 | bower_components
38 |
39 | # node-waf configuration
40 | .lock-wscript
41 |
42 | # Compiled binary addons (https://nodejs.org/api/addons.html)
43 | build/Release
44 |
45 | # Dependency directories
46 | node_modules/
47 | jspm_packages/
48 |
49 | # TypeScript v1 declaration files
50 | typings/
51 |
52 | # TypeScript cache
53 | *.tsbuildinfo
54 |
55 | # Optional npm cache directory
56 | .npm
57 |
58 | # Optional eslint cache
59 | .eslintcache
60 |
61 | # Microbundle cache
62 | .rpt2_cache/
63 | .rts2_cache_cjs/
64 | .rts2_cache_es/
65 | .rts2_cache_umd/
66 |
67 | # Optional REPL history
68 | .node_repl_history
69 |
70 | # Output of 'npm pack'
71 | *.tgz
72 |
73 | # Yarn Integrity file
74 | .yarn-integrity
75 |
76 | # dotenv environment variables file
77 | .env
78 | .env.test
79 |
80 | # parcel-bundler cache (https://parceljs.org/)
81 | .cache
82 |
83 | # Next.js build output
84 | .next
85 |
86 | # Nuxt.js build / generate output
87 | .nuxt
88 | dist
89 |
90 | # Gatsby files
91 | .cache/
92 | # Comment in the public line in if your project uses Gatsby and not Next.js
93 | # https://nextjs.org/blog/next-9-1#public-directory-support
94 | # public
95 |
96 | # vuepress build output
97 | .vuepress/dist
98 |
99 | # Serverless directories
100 | .serverless/
101 |
102 | # FuseBox cache
103 | .fusebox/
104 |
105 | # DynamoDB Local files
106 | .dynamodb/
107 |
108 | # TernJS port file
109 | .tern-port
110 |
111 | # Stores VSCode versions used for testing VSCode extensions
112 | .vscode-test
113 |
114 | ### react ###
115 | .DS_*
116 | **/*.backup.*
117 | **/*.back.*
118 |
119 | node_modules
120 |
121 | *.sublime*
122 |
123 | psd
124 | thumb
125 | sketch
126 |
127 | # End of https://www.toptal.com/developers/gitignore/api/react,node
--------------------------------------------------------------------------------
/client/src/components/theme.js:
--------------------------------------------------------------------------------
1 | import { createMuiTheme } from "@material-ui/core/styles";
2 | import { green, grey, red } from "@material-ui/core/colors";
3 |
4 | const rawTheme = createMuiTheme({
5 | palette: {
6 | primary: {
7 | light: "#69696a",
8 | main: "#28282a",
9 | dark: "#1e1e1f",
10 | },
11 | secondary: {
12 | light: "#fff5f8",
13 | main: "#ff3366",
14 | dark: "#e62958",
15 | },
16 | warning: {
17 | main: "#ffc071",
18 | dark: "#ffb25e",
19 | },
20 | error: {
21 | xLight: red[50],
22 | main: red[500],
23 | dark: red[700],
24 | },
25 | success: {
26 | xLight: green[50],
27 | main: green[500],
28 | dark: green[700],
29 | },
30 | },
31 | typography: {
32 | fontFamily: "'Work Sans', sans-serif",
33 | fontSize: 14,
34 | fontWeightLight: 300, // Work Sans
35 | fontWeightRegular: 400, // Work Sans
36 | fontWeightMedium: 700, // Roboto Condensed
37 | fontFamilySecondary: "'Roboto Condensed', sans-serif",
38 | },
39 | });
40 |
41 | const fontHeader = {
42 | color: rawTheme.palette.text.primary,
43 | fontWeight: rawTheme.typography.fontWeightMedium,
44 | fontFamily: rawTheme.typography.fontFamilySecondary,
45 | textTransform: "uppercase",
46 | };
47 |
48 | const theme = {
49 | ...rawTheme,
50 | palette: {
51 | ...rawTheme.palette,
52 | background: {
53 | ...rawTheme.palette.background,
54 | default: rawTheme.palette.common.white,
55 | placeholder: grey[200],
56 | },
57 | },
58 | typography: {
59 | ...rawTheme.typography,
60 | fontHeader,
61 | h1: {
62 | ...rawTheme.typography.h1,
63 | ...fontHeader,
64 | letterSpacing: 0,
65 | fontSize: 60,
66 | },
67 | h2: {
68 | ...rawTheme.typography.h2,
69 | ...fontHeader,
70 | fontSize: 48,
71 | },
72 | h3: {
73 | ...rawTheme.typography.h3,
74 | ...fontHeader,
75 | fontSize: 42,
76 | },
77 | h4: {
78 | ...rawTheme.typography.h4,
79 | ...fontHeader,
80 | fontSize: 36,
81 | },
82 | h5: {
83 | ...rawTheme.typography.h5,
84 | fontSize: 20,
85 | fontWeight: rawTheme.typography.fontWeightLight,
86 | },
87 | h6: {
88 | ...rawTheme.typography.h6,
89 | ...fontHeader,
90 | fontSize: 18,
91 | },
92 | subtitle1: {
93 | ...rawTheme.typography.subtitle1,
94 | fontSize: 18,
95 | },
96 | body1: {
97 | ...rawTheme.typography.body2,
98 | fontWeight: rawTheme.typography.fontWeightRegular,
99 | fontSize: 16,
100 | },
101 | body2: {
102 | ...rawTheme.typography.body1,
103 | fontSize: 14,
104 | },
105 | },
106 | };
107 |
108 | export default theme;
109 |
--------------------------------------------------------------------------------
/client/src/pages/user.js:
--------------------------------------------------------------------------------
1 | import React, { useState } from "react";
2 | import Button from "@material-ui/core/Button";
3 | import Grid from "@material-ui/core/Grid";
4 | import Typography from "@material-ui/core/Typography";
5 | import TextField from "@material-ui/core/TextField";
6 | import { makeStyles } from "@material-ui/core/styles";
7 | import Link from "@material-ui/core/Link";
8 | import Paper from "@material-ui/core/Paper";
9 | import axios from "axios";
10 |
11 | export default function User() {
12 | function Copyright() {
13 | return (
14 |
15 | {"Copyright © "}
16 |
17 | Fitkit
18 | {" "}
19 | {new Date().getFullYear()}
20 | {"."}
21 |
22 | );
23 | }
24 |
25 | const [username, setUsername] = useState("");
26 | const handleChange = (e) => {
27 | setUsername(e.target.value);
28 | };
29 |
30 | const onSubmit = (e) => {
31 | e.preventDefault();
32 | const user = {
33 | username,
34 | };
35 | console.log(user);
36 | axios
37 | .post("https://fitness-tracker-mern.herokuapp.com/users/add/", user)
38 | .then((res) => console.log(res.data));
39 |
40 | setUsername("");
41 | };
42 |
43 | const useStyles = makeStyles((theme) => ({
44 | appBar: {
45 | position: "relative",
46 | },
47 | layout: {
48 | width: "auto",
49 | marginLeft: theme.spacing(2),
50 | marginRight: theme.spacing(2),
51 | [theme.breakpoints.up(600 + theme.spacing(2) * 2)]: {
52 | width: 600,
53 | marginLeft: "auto",
54 | marginRight: "auto",
55 | },
56 | },
57 | paper: {
58 | marginTop: theme.spacing(3),
59 | marginBottom: theme.spacing(3),
60 | padding: theme.spacing(2),
61 | [theme.breakpoints.up(600 + theme.spacing(3) * 2)]: {
62 | marginTop: theme.spacing(6),
63 | marginBottom: theme.spacing(6),
64 | padding: theme.spacing(3),
65 | },
66 | },
67 | stepper: {
68 | padding: theme.spacing(3, 0, 5),
69 | },
70 | buttons: {
71 | display: "flex",
72 | justifyContent: "flex-end",
73 | },
74 | button: {
75 | marginTop: theme.spacing(3),
76 | marginLeft: theme.spacing(1),
77 | },
78 | }));
79 |
80 | const classes = useStyles();
81 | return (
82 |
83 |
84 |
85 |
86 | Create User
87 |
88 |
112 |
113 |
114 |
115 |
116 | );
117 | }
118 |
--------------------------------------------------------------------------------
/client/src/pages/Dashboard.js:
--------------------------------------------------------------------------------
1 | import React, { useState } from "react";
2 | import { withStyles, makeStyles } from "@material-ui/core/styles";
3 | import Button from "@material-ui/core/Button";
4 | import Link from "@material-ui/core/Link";
5 | import Table from "@material-ui/core/Table";
6 | import TableBody from "@material-ui/core/TableBody";
7 | import TableCell from "@material-ui/core/TableCell";
8 | import TableContainer from "@material-ui/core/TableContainer";
9 | import TableHead from "@material-ui/core/TableHead";
10 | import TableRow from "@material-ui/core/TableRow";
11 | import Paper from "@material-ui/core/Paper";
12 | import Typography from "@material-ui/core/Typography";
13 | import axios from "axios";
14 |
15 | const StyledTableCell = withStyles((theme) => ({
16 | head: {
17 | backgroundColor: theme.palette.primary.dark,
18 |
19 | color: theme.palette.common.white,
20 | },
21 | body: {
22 | fontSize: 14,
23 | },
24 | }))(TableCell);
25 |
26 | const StyledTableRow = withStyles((theme) => ({
27 | root: {
28 | "&:nth-of-type(odd)": {
29 | backgroundColor: theme.palette.action.hover,
30 | },
31 | },
32 | }))(TableRow);
33 |
34 | function Dashboard() {
35 | function Copyright() {
36 | return (
37 |
38 | {"Copyright © "}
39 |
40 | Fitkit
41 | {" "}
42 | {new Date().getFullYear()}
43 | {"."}
44 |
45 | );
46 | }
47 |
48 | const useStyles = makeStyles((theme) => ({
49 | appBar: {
50 | position: "relative",
51 | },
52 | layout: {
53 | width: "auto",
54 | marginLeft: theme.spacing(2),
55 | marginRight: theme.spacing(2),
56 | [theme.breakpoints.up(600 + theme.spacing(2) * 2)]: {
57 | width: 700,
58 | marginLeft: "auto",
59 | marginRight: "auto",
60 | },
61 | },
62 | paper: {
63 | marginTop: theme.spacing(3),
64 | marginBottom: theme.spacing(3),
65 | padding: theme.spacing(2),
66 | [theme.breakpoints.up(600 + theme.spacing(3) * 2)]: {
67 | marginTop: theme.spacing(6),
68 | marginBottom: theme.spacing(6),
69 | padding: theme.spacing(3),
70 | },
71 | },
72 | stepper: {
73 | padding: theme.spacing(3, 0, 5),
74 | },
75 | buttons: {
76 | display: "flex",
77 | justifyContent: "flex-end",
78 | },
79 | button: {
80 | marginTop: theme.spacing(3),
81 | marginLeft: theme.spacing(1),
82 | },
83 | }));
84 |
85 | const [exercises, setExercises] = useState([]);
86 |
87 | React.useEffect(() => {
88 | axios
89 | .get("https://fitness-tracker-mern.herokuapp.com/exercises")
90 | .then((response) => {
91 | setExercises(response.data);
92 | })
93 | .catch((error) => {
94 | console.log(error);
95 | });
96 | }, []);
97 |
98 | const deleteExercise = (id) => {
99 | axios
100 | .delete("https://fitness-tracker-mern.herokuapp.com/exercises/" + id)
101 | .then((response) => {
102 | console.log(response.data);
103 | });
104 | const del = exercises.filter((el) => el._id !== id);
105 | setExercises(del);
106 | };
107 |
108 | const classes = useStyles();
109 |
110 | return (
111 |
112 |
113 |
114 |
115 | Dashboard
116 |
117 |
118 |
119 |
120 |
121 | Users
122 | Activity
123 | Duration
124 | Date
125 | Actions
126 |
127 |
128 |
129 | {exercises.map((row, index) => (
130 |
131 |
132 | {row.username}
133 |
134 |
135 | {row.description}
136 |
137 |
138 | {row.duration}
139 |
140 |
141 | {row.date.substring(0, 10)}
142 |
143 |
144 |
150 |
151 |
152 | ))}
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 | );
161 | }
162 | export default Dashboard;
163 |
--------------------------------------------------------------------------------
/client/src/pages/Exercises.js:
--------------------------------------------------------------------------------
1 | import React, { useState } from "react";
2 | import Button from "@material-ui/core/Button";
3 | import Grid from "@material-ui/core/Grid";
4 | import Typography from "@material-ui/core/Typography";
5 | import TextField from "@material-ui/core/TextField";
6 | import { makeStyles } from "@material-ui/core/styles";
7 | import Link from "@material-ui/core/Link";
8 | import Paper from "@material-ui/core/Paper";
9 | import axios from "axios";
10 |
11 | import Select from "@material-ui/core/Select";
12 |
13 | export default function Exercises() {
14 | const [username, setUsername] = useState("");
15 | const [description, setDescription] = useState("");
16 | const [duration, setDuration] = useState(0);
17 | const [date, setDate] = useState(new Date());
18 | const [users, setUsers] = useState([]);
19 |
20 | React.useEffect(() => {
21 | axios
22 | .get("https://fitness-tracker-mern.herokuapp.com/users")
23 | .then((response) => {
24 | if (response.data.length > 0) {
25 | setUsers(response.data.map((user) => user.username));
26 | setUsername(response.data[0].username);
27 | }
28 | })
29 | .catch((error) => {
30 | console.log(error);
31 | });
32 | }, []);
33 |
34 | const onChangeUsername = (e) => {
35 | setUsername(e.target.value);
36 | };
37 |
38 | const onChangeDescription = (e) => {
39 | setDescription(e.target.value);
40 | };
41 |
42 | const onChangeDuration = (e) => {
43 | setDuration(e.target.value);
44 | };
45 |
46 | const onChangeDate = (e) => {
47 | setDate(e.target.value);
48 | };
49 |
50 | const onSubmit = (e) => {
51 | e.preventDefault();
52 |
53 | const exercise = {
54 | username,
55 | description,
56 | duration,
57 | date,
58 | };
59 |
60 | axios
61 | .post(
62 | "https://fitness-tracker-mern.herokuapp.com/exercises/add/",
63 | exercise
64 | )
65 | .then((res) => console.log(res.data));
66 |
67 | setUsername("");
68 | setDescription("");
69 | setDuration("");
70 | setDate("");
71 | };
72 | function Copyright() {
73 | return (
74 |
75 | {"Copyright © "}
76 |
77 | Fitkit
78 | {" "}
79 | {new Date().getFullYear()}
80 | {"."}
81 |
82 | );
83 | }
84 |
85 | const useStyles = makeStyles((theme) => ({
86 | appBar: {
87 | position: "relative",
88 | },
89 | layout: {
90 | width: "auto",
91 | marginLeft: theme.spacing(2),
92 | marginRight: theme.spacing(2),
93 | [theme.breakpoints.up(600 + theme.spacing(2) * 2)]: {
94 | width: 600,
95 | marginLeft: "auto",
96 | marginRight: "auto",
97 | },
98 | },
99 | paper: {
100 | marginTop: theme.spacing(3),
101 | marginBottom: theme.spacing(3),
102 | padding: theme.spacing(2),
103 | [theme.breakpoints.up(600 + theme.spacing(3) * 2)]: {
104 | marginTop: theme.spacing(6),
105 | marginBottom: theme.spacing(6),
106 | padding: theme.spacing(3),
107 | },
108 | },
109 | stepper: {
110 | padding: theme.spacing(3, 0, 5),
111 | },
112 | buttons: {
113 | display: "flex",
114 | justifyContent: "flex-end",
115 | },
116 | button: {
117 | marginTop: theme.spacing(3),
118 | marginLeft: theme.spacing(1),
119 | },
120 | }));
121 |
122 | const classes = useStyles();
123 | return (
124 |
125 |
126 |
127 |
128 | Record Fitness Activity
129 |
130 |
199 |
200 |
201 |
202 |
203 | );
204 | }
205 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright 2020 Kritika Srivastava
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/client/src/images/undraw_page_not_found_su7k.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/client/public/images/undraw_page_not_found_su7k.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------