Skip to content

Commit 1c71bae

Browse files
committed
Update README.md
1 parent 8723134 commit 1c71bae

File tree

9 files changed

+48
-36
lines changed

9 files changed

+48
-36
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
This repo contains two sample applications using **React** and **Redux**,
44
built with **Babel** and **Webpack** and tested with **Jest** :
55

6-
1. [TodoMVC](http://todomvc.parseapp.com/)
7-
2. DatingApp (Not done yet.)
6+
1. [TodoMVC](http://todomvc.parseapp.com/) (Basic, no async actions)
7+
2. [MeetingApp](http://meetingapp.parseapp.com/) (Advanced, contains async actions, routings, authentication flow and so on)
88

99
(Click the above project links to see demo)
1010

meetingapp/README.md

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
1-
# [TodoMVC](http://todomvc.parseapp.com/)
1+
# [MeetingApp](http://meetingapp.parseapp.com/)
22

3-
It is easy and fast to learn how a design pattern works by implementing a todo list.
4-
<br>
5-
Here we implement a todo list using **Redux** architecture.
6-
<br>
7-
(Click the above title link to see demo)
3+
## User story
4+
Setting up a meeting with someone always bothers me.
5+
6+
## Features
7+
* Asyncronized actions
8+
* Routings built with React Router for routes and Redux Simple Router for transitions.
9+
* Handle public and private views, based on [**Higher Older Component**](https://medium.com/@dan_abramov/mixins-are-dead-long-live-higher-order-components-94a0d2f9e750) implementation
10+
* Authentication flow : sign up, login, logout
11+
* Use [**Parse**](https://www.parse.com/) as backend
12+
* Beautiful UI
813

914
## Project structure
1015
```
11-
|-- todomvc
12-
|-- .babelrc # Babel configuration file, makes us able to write es6 syntax
13-
|-- README.md # Ignore it
14-
|-- package.json # Node package configuration
16+
|-- meetingapp
17+
|-- .babelrc # Babel configuration file, makes us able to write es6 syntax
18+
|-- README.md # Ignore it
19+
|-- package.json # Node package configuration
1520
|-- webpack.config.js # Webpack configuration file
1621
|-- app # App src code
1722
| |-- index.js # Entry point of app, config in webpack.config.js
1823
| |-- __tests__ # Jest unit test
24+
| |-- img # image files
25+
| |-- modules # Parse initialize and configs (App key and JS key)
1926
| |-- actions # Redux actions
2027
| |-- components # React dumb component
2128
| |-- containers # React smart component, composed by dumb component
2229
| |-- reducers # Redux reducers
2330
| |-- store # Redux store
2431
|-- build # Webpack build/deploy output folder
25-
|-- bundle.js # You can change output file name in webpack.config.js
26-
|-- index.html # After build or deploy, you can open this file to see demo
27-
|-- style.css # You can change output file name in webpack.config.js
28-
2932
```
3033

3134
## Setup workflow
@@ -34,7 +37,7 @@ First open your command line, clone this project (suppose you have installed [gi
3437

3538
```
3639
git clone https://github.com/HowardLoTW/react-redux-sample.git
37-
cd react-redux-sample/todomvc
40+
cd react-redux-sample/meetingapp
3841
```
3942
Suppose you have installed [nodejs](https://nodejs.org/en/) (required node version 4.x or upper. I'm using node v5.3.0 & npm v3.3.12).
4043
<br>Type 'npm install' in your command line to install dependencies.
@@ -48,6 +51,15 @@ npm run dev
4851
```
4952
Open your browser and navigate to http://localhost:8080/webpack-dev-server/
5053

54+
##### Parse Setup
55+
Go to [**Parse**](https://www.parse.com/) and create a project.
56+
<br>
57+
Remember to change Parse keys at `meetingapp/app/modules/config.js`.
58+
<br>
59+
Create two classes in your Parse app
60+
1. User (By default)
61+
2. Timetable (Custom) containing two columns: `data (String)`, `user (Pointer to _User)`
62+
5163
### Testing
5264
```
5365
npm run test
@@ -77,6 +89,7 @@ You can checkout the following talks for more information:
7789
1. More setup workflow information, please refer to [react-webpack-cookbook](https://christianalfoni.github.io/react-webpack-cookbook/index.html)
7890
2. [Learn to implement Redux architecture in React app](http://rackt.org/redux/index.html)
7991
3. [More Redux example](https://github.com/rackt/redux)
92+
4. [Authentication basic example](https://github.com/joshgeller/react-redux-jwt-auth-example)
8093

8194

8295

meetingapp/app/components/Timetable/Timetable.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ export default class Timetable extends Component {
3232

3333
const { days, timetable, isSetting, timetableToBeCompared } = this.props;
3434

35-
console.log(timetableToBeCompared);
36-
3735
return (
3836
<table className={classnames(styles.timetable, {
3937
[`${styles.settable}`]: isSetting
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export default {
2-
PARSE_APP_ID: 'BDTpem5piXI5btT6IEokDSgKXSpuXrMhNgsphPg4',
3-
PARSE_JS_KEY: 'kFNq23NewwNncL0u2xmEayiwqDxV1twbFoSpz7Np'
2+
PARSE_APP_ID: 'vpNdKRT27czZ0UyJJ0I3sDHbXKIWiLxY767wjMzn',
3+
PARSE_JS_KEY: 'SeiC7y9aveYViNvWknpgp4q55AoRsXYuVMzUmaKY'
44
}

meetingapp/build/bundle.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Loading

meetingapp/build/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="utf-8">
5-
<title>TodoMVC</title>
5+
<title>Meeting App</title>
66
<link rel="icon" href="data:;base64,=">
77
<!-- See webpack.config.js ExtractTextPlugin -->
88
<link rel="stylesheet" type="text/css" href="style.css" />

meetingapp/build/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

meetingapp/build/vendors.js

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)