Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
4aca700
installed material-ui and first setup of navbar
mir4cles Jun 18, 2020
5208ae1
routing done with a tab bar
mir4cles Jun 18, 2020
573ebc5
material-ui basic and standard implementation
mir4cles Jun 19, 2020
aa42a62
setup events.map with Cards
mir4cles Jun 19, 2020
caee391
event overview is fetching!
mir4cles Jun 22, 2020
8b35bac
event details page with server data
mir4cles Jun 22, 2020
3a6a8d6
teams and teamdetails fetched from server
mir4cles Jun 22, 2020
ffd55fa
Merge pull request #1 from mir4cles/events-fetching-and-mapping-from-…
mir4cles Jun 22, 2020
ced7033
add loggedIn status
mir4cles Jun 22, 2020
0e78ffb
removed button from import
mir4cles Jun 22, 2020
5f34f4e
Merge pull request #2 from mir4cles/feat-login-status-nav
mir4cles Jun 22, 2020
e74cff6
create event button on event page
mir4cles Jun 22, 2020
e994a33
form with useState without dispatch
mir4cles Jun 23, 2020
8bf0a6b
dispatch form and send request to server
mir4cles Jun 23, 2020
afebd9c
Merge pull request #3 from mir4cles/feat-create-event
mir4cles Jun 23, 2020
11b1a44
create event button fixed to bottom right
mir4cles Jun 23, 2020
3f4f9d0
wider cards
mir4cles Jun 23, 2020
f8c049c
Merge pull request #4 from mir4cles/feat-events-overview
mir4cles Jun 23, 2020
d62c1af
show attendings in event overview
mir4cles Jun 23, 2020
82bdc29
eventDetails show attendees as list
mir4cles Jun 23, 2020
e0eaf0c
attend event through event details
mir4cles Jun 23, 2020
4ff345d
if rsvp already exists message will be shown
mir4cles Jun 24, 2020
d5e1b22
show cancel button if rsvp exists
mir4cles Jun 24, 2020
27ad794
remove rsvp in state
mir4cles Jun 24, 2020
fb86e69
removed update_events from reducer
mir4cles Jun 24, 2020
ebdacc6
Merge pull request #5 from mir4cles/feat-rsvp
mir4cles Jun 24, 2020
5415e5a
edit event details with no re-direct
mir4cles Jun 25, 2020
7695bed
changes setMessage
mir4cles Jun 25, 2020
61799d1
Merge pull request #6 from mir4cles/feat-editevent
mir4cles Jun 25, 2020
1ff810a
Alert messagebox with proper props
mir4cles Jun 25, 2020
16eb60c
Merge pull request #7 from mir4cles/feat-alert-messages
mir4cles Jun 25, 2020
984200d
skeleton card for loading appState
mir4cles Jun 25, 2020
d0c8583
Merge pull request #8 from mir4cles/feat-loading
mir4cles Jun 25, 2020
13c3483
event cards improvements
mir4cles Jun 25, 2020
492a03c
event cards improvements
mir4cles Jun 25, 2020
4f9d48d
Merge pull request #9 from mir4cles/feat-event-cards-v2
mir4cles Jun 25, 2020
3bb84cc
event info with icons and event headers
mir4cles Jun 25, 2020
84bbc66
Merge pull request #10 from mir4cles/feat-event-card-v3
mir4cles Jun 25, 2020
e671ad2
navbar without tabs
mir4cles Jun 25, 2020
b1c3471
Merge pull request #11 from mir4cles/feat-navbar-v2
mir4cles Jun 25, 2020
01e2096
refactoring before deploy
mir4cles Jun 26, 2020
4ad21f2
Merge pull request #12 from mir4cles/refactoring
mir4cles Jun 26, 2020
f7d40fd
Merge pull request #13 from mir4cles/development
mir4cles Jun 26, 2020
3a6ecee
set some messages to showMessageWithTimeout
mir4cles Jun 26, 2020
40c1381
Merge pull request #14 from mir4cles/minor-edits
mir4cles Jun 26, 2020
784cbbe
readme
mir4cles Jun 26, 2020
78d864b
readme
mir4cles Jun 26, 2020
be24b6c
Merge pull request #15 from mir4cles/master
mir4cles Jun 26, 2020
b4287d8
html title
mir4cles Jun 26, 2020
121031f
Merge branch 'development' of github.com:mir4cles/teamMate-client int…
mir4cles Jun 26, 2020
40729ec
Merge pull request #16 from mir4cles/development
mir4cles Jun 26, 2020
f0882e1
heroku api url in config
mir4cles Jun 26, 2020
f62e1b4
Merge pull request #17 from mir4cles/development
mir4cles Jun 26, 2020
4a4fbdc
typo...
mir4cles Jun 26, 2020
a4b64c7
Merge pull request #18 from mir4cles/development
mir4cles Jun 26, 2020
28f8608
Update README.md
mir4cles Oct 8, 2020
dd6dc9b
instructions on landing page
mir4cles Oct 12, 2020
c9ac9f3
Merge pull request #20 from mir4cles/landing-page
mir4cles Oct 13, 2020
af2a968
Merge pull request #21 from mir4cles/master
mir4cles Oct 13, 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
49 changes: 28 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,49 @@
# Frontend template
# teamMate

This is a simple react/redux/jwt template to start a project quickly
See the deployed site [here](https://modest-austin-b02609.netlify.app/) (loading times may vary due to database hosting).

## Table of contents:

- **[Setup](#setup-how-to-use-this-template)**
- **[Create React App docs](#cra-docs)**
- **[About](#about-teamMate)**
- **[Getting started](#getting-started)**
- **[Built with](#built-with)**
- **[User stories and Wireframe](#User-stories-and-Wireframe)**

## SETUP How to use this template
## About teamMate

1. Create a new project based on this template using the `Use this template` button
teamMate allows users to browse and host sport events. users can start a team, join an existing one or ride solo and attend private or public pick-up games.

![HOW_TO_USE](https://user-images.githubusercontent.com/20372832/77003323-70966180-695d-11ea-8abe-b362d57135f3.gif)
## Getting started

2. Clone the app
1. Clone the repo

```
git clone git@github.com:YOUR_GITHUB_NAME/YOUR_PROJECT_NAME.git
```
2. cd into the repo on your computer.

3. cd into your project
3. Install dependencies

```
cd YOUR_PROJECT_NAME
$ npm install
```

4. install dependencies
4. Compile and run to run the app in a browser

```
npm install
$ npm run start
```

5. Start development server with npm start
4. If you like to use the server to see some data go [here](https://github.com/mir4cles/teamMate-server) and repeat steps 1,2,3,4

```
npm start
```
5. Let me know what you think.

## Built With

- [Material Ui](https://material-ui.com/)
- [React](https://reactjs.org/)
- [Redux](https://redux.js.org/)
- [Codaisseur's React Redux Template](https://github.com/Codaisseur/express-template)

## CRA docs
## User stories and Wireframe

The normal Create React App docs can be found in [CRA_DOCS.md](./CRA_DOCS.md)
- [User storires](https://github.com/users/mir4cles/projects/1#column-9641210)
- [Wireframe of design](https://wireframepro.mockflow.com/view/teamMate-client-wireframe)
- [Database diagram](https://app.lucidchart.com/invitations/accept/9dd630e3-019a-48af-91cd-c250ff20fdec)
125 changes: 106 additions & 19 deletions package-lock.json

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

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,20 @@
"private": true,
"dependencies": {
"@material-ui/core": "^4.10.2",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "^4.0.0-alpha.56",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"axios": "^0.19.2",
"bootstrap": "^4.4.1",
"fontsource-roboto": "^2.1.4",
"history": "^5.0.0",
"react": "^16.13.0",
"react-bootstrap": "^1.0.0-beta.17",
"react-dom": "^16.13.0",
"react-redux": "^7.2.0",
"react-router": "^5.2.0",
"react-router-dom": "^5.1.2",
"react-scripts": "3.4.0",
"redux": "^4.0.5",
Expand Down
30 changes: 5 additions & 25 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,21 @@
<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="viewport"
content="minimum-scale=1, initial-scale=1, width=device-width"
/>
<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>React App</title>
<title>teamMate</title>
</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>
46 changes: 23 additions & 23 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
import React, { useEffect } from "react";
import "./App.css";

import { Switch, Route } from "react-router-dom";

import Navigation from "./components/Navigation";
import Loading from "./components/Loading";
import MessageBox from "./components/MessageBox";
import Home from "./pages/Home";
import SignUp from "./pages/SignUp";
import Login from "./pages/Login";
import MyProfile from "./pages/MyProfile";
import Teams from "./pages/Teams";
import TeamDetails from "./pages/TeamDetails";
import Events from "./pages/Events";
import EventDetails from "./pages/EventDetails";
import CreateEvent from "./pages/CreateEvent";
import Support from "./pages/Support";
import NotFound from "./pages/NotFound";

import { useDispatch, useSelector } from "react-redux";
import { selectAppLoading } from "./store/appState/selectors";
import { useDispatch } from "react-redux";
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as a style guide, i normally order my imports like:

  1. Libraries (react, react-redux, express, etc)
  2. My other files (actions/selectors in the FE, routers + middlewares in the backend)
  3. Components
  4. Css

import { getUserWithStoredToken } from "./store/user/actions";
import { Jumbotron } from "react-bootstrap";

const Home = () => (
<Jumbotron>
<h1>Home</h1>
</Jumbotron>
);
const Other = () => (
<Jumbotron>
<h1>Other</h1>
</Jumbotron>
);

function App() {
const dispatch = useDispatch();
const isLoading = useSelector(selectAppLoading);

useEffect(() => {
dispatch(getUserWithStoredToken());
}, [dispatch]);

return (
<div className="App">
<>
<Navigation />
<MessageBox />
{isLoading ? <Loading /> : null}
<Switch>
<Route exact path="/" component={Home} />
<Route path="/other" component={Other} />
<Route path="/signup" component={SignUp} />
<Route exact path="/teams" component={Teams} />
<Route path="/teams/:id" component={TeamDetails} />
<Route exact path="/events" component={Events} />
<Route path="/events/:id" component={EventDetails} />
<Route path="/create-event" component={CreateEvent} />
<Route path="/login" component={Login} />
<Route path="/profiles/:id" component={MyProfile} />
<Route path="/signup" component={SignUp} />
<Route path="/support" component={Support} />
<Route path="/" component={NotFound} />
<Route path="/404" component={NotFound} />
</Switch>
</div>
</>
);
}

Expand Down
Loading