Skip to content

Commit bf6cae2

Browse files
committed
first commit
0 parents  commit bf6cae2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1062
-0
lines changed

.babelrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["es2015", "stage-0", "react"]
3+
}

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
yarn.lock
3+
npm-debug.log
4+
.DS_Store

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 ReactJS Academy
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## ReactJS Fundamentals - Thinking in React
2+
3+
The goal of this exercise is to learn how to think in React. There are thousands of tutorials online but there's no better way to learn than hacking it yourself.
4+
5+
## Requirements
6+
You need to be comfortable writing JavaScript (ES6: Module system, class, destructuring assignment).
7+
You need to have `node`and `npm`installed in your computer.
8+
9+
## Technologies
10+
The focus will be given to React but to create a simple workflow, we will need a few tools (JS fatigue):
11+
- Webpack
12+
- Babel-loader
13+
- Jsx support
14+
- Live reloading (Live-server)
15+
16+
Oh no, you won't need that! We promised you React on the menu so let's focus on React!!
17+
We've added everything you need so you don't need to know anything about it unless you're very curious.
18+
Just run `npm start`and you'll be good to go.
19+
20+
## Getting started:
21+
22+
Just clone this [repository](https://github.com/reactjs-academy/library.git) and run `npm start`
23+
24+
An example of the application is available [here](http://library.reactjs.academy/)
25+
26+
27+
## Things to know about React
28+
29+
- Everything is a component
30+
- Components in React are pure functions
31+
- Container components vs presentational components
32+
- Props vs State
33+
34+
## What's next?
35+
36+
- State management with Redux
37+
- Developer tools for React
38+
39+
## License
40+
41+
This material is available for private, non-commercial use under the [GPL version 3](http://www.gnu.org/licenses/gpl-3.0-standalone.html).

index.html

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<meta name="author" content="ReactJS Academy">
8+
<title>ReactJS Fundamentals - Library</title>
9+
<!--
10+
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
11+
-->
12+
<link href="/public/css/bootstrap.min.css" rel="stylesheet">
13+
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
14+
15+
<link href="/public/css/main.css" rel="stylesheet">
16+
17+
<!-- Custom Fonts -->
18+
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
19+
<link href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic" rel="stylesheet" type="text/css">
20+
21+
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
22+
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
23+
<!--[if lt IE 9]>
24+
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
25+
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
26+
<![endif]-->
27+
28+
29+
</head>
30+
<body>
31+
<div id="root"></div>
32+
<script src="/bundle.js"></script>
33+
</body>
34+
</html>

package.json

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"name": "react-library",
3+
"version": "1.0.0",
4+
"description": "ReactJS Fundamentals - Library Example",
5+
"main": "index.js",
6+
"scripts": {
7+
"start": "./node_modules/.bin/babel-node server.js"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/reactjs-academy/library.git"
12+
},
13+
"author": "ReactJS Academy",
14+
"license": "GPL-3.0",
15+
"bugs": {
16+
"url": "https://github.com/reactjs-academy/library/issues"
17+
},
18+
"homepage": "https://github.com/reactjs-academy/library#readme",
19+
"dependencies": {
20+
"react": "^15.4.1",
21+
"react-burger-menu": "^1.10.10",
22+
"react-container-component": "^1.0.3",
23+
"react-dom": "^15.4.1",
24+
"react-hot-loader": "^3.0.0-beta.6",
25+
"react-tap-event-plugin": "^2.0.0"
26+
},
27+
"devDependencies": {
28+
"babel-cli": "^6.16.0",
29+
"babel-core": "^6.0.20",
30+
"babel-loader": "^6.2.8",
31+
"babel-plugin-typecheck": "^3.9.0",
32+
"babel-polyfill": "^6.20.0",
33+
"babel-preset-es2015": "^6.0.15",
34+
"babel-preset-react": "^6.0.15",
35+
"babel-preset-stage-0": "^6.0.15",
36+
"babel-register": "^6.18.0",
37+
"css-loader": "^0.26.1",
38+
"express": "^4.14.0",
39+
"ignore-styles": "^5.0.1",
40+
"style-loader": "^0.13.1",
41+
"webpack": "^1.14.0",
42+
"webpack-dev-middleware": "^1.8.4",
43+
"webpack-hot-middleware": "^2.13.0",
44+
"webpack-validator": "^2.3.0"
45+
}
46+
}

public/css/bootstrap.min.css

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)