Skip to content
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

Commit 1714fee

Browse files
committed
init commit
0 parents  commit 1714fee

32 files changed

+566
-0
lines changed

.babelrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"presets": [
3+
"airbnb"
4+
]
5+
}

.build/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Development</title>
5+
</head>
6+
<body>
7+
<div id="root">
8+
</div>
9+
<script src="/dist/bundle.js"></script>
10+
</body>
11+
</html>

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# http://editorconfig.org/
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
insert_final_newline = true
8+
indent_style = space
9+
indent_size = 2
10+
trim_trailing_whitespace = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
14+
15+
[Makefile]
16+
indent_style = tab

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "airbnb"
3+
}

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
*.csv
2+
*.dat
3+
*.iml
4+
*.log
5+
*.out
6+
*.pid
7+
*.seed
8+
*.sublime-*
9+
*.swo
10+
*.swp
11+
*.tgz
12+
*.xml
13+
*.save
14+
.DS_Store
15+
.idea
16+
.project
17+
.strong-pm
18+
coverage
19+
node_modules
20+
npm-debug.log
21+
.build/dist

.jshintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/client/
2+
/node_modules/

.jshintrc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"node": true,
3+
"esnext": true,
4+
"bitwise": true,
5+
"camelcase": true,
6+
"eqeqeq": true,
7+
"eqnull": true,
8+
"immed": true,
9+
"indent": 2,
10+
"latedef": "nofunc",
11+
"newcap": true,
12+
"nonew": true,
13+
"noarg": true,
14+
"quotmark": "single",
15+
"regexp": true,
16+
"undef": true,
17+
"unused": false,
18+
"trailing": true,
19+
"sub": true,
20+
"maxlen": 80
21+
}

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 Tony Ngan
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

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# loopback-redux-react-boilerplate
2+
3+
A boilerplate for a Redux-React application using LoopBack
4+
5+
### Get Started
6+
- **Clone this repository or use npm**
7+
```bash
8+
$ git clone https://github.com/tngan/loopback-redux-react-boilerplate.git
9+
```
10+
```bash
11+
$ npm install loopback-redux-react-boilerplate
12+
```
13+
14+
- **Install dependencies specified in package.json**
15+
```bash
16+
$ npm install
17+
```
18+
19+
- **Start the server (default port is set to 3000)**
20+
```bash
21+
$ npm start
22+
```
23+
24+
### Scripts
25+
- **npm run deploy**: Bundles the application into `.build/dist`.
26+
27+
- **npm run start_prod**: Starts production server, make sure you have already deployed the application.
28+
29+
- **npm run clean**: Removes the bundled files.
30+
31+
### Built-in example
32+
A simple 'Hello World' Redux-React application is included in this boilerplate. You can find those files under `/client`.
33+
34+
Hot reloading is only applied in development mode. In production mode, the code base is pre-compiled and placed under `.build/dist`.
35+
36+
### License
37+
38+
[MIT](LICENSE)
39+
40+
### Copyright
41+
42+
Copyright (C) 2015 Tony Ngan, released under the MIT License.

0 commit comments

Comments
 (0)