Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.

Commit 575b5d5

Browse files
committed
Updated developer workflow instructions to README
1 parent 473ab86 commit 575b5d5

4 files changed

Lines changed: 39 additions & 7 deletions

File tree

README.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ ReactJS version of the original AdminLTE dashboard - https://github.com/almasaee
66
### UPDATE 2:
77
[ReactJS Timeline](./reactjs-adminlte/public/src/timeline-page)
88

9-
[Click here](http://ec2-52-74-208-196.ap-southeast-1.compute.amazonaws.com:8080/timeline.html) to see it live
9+
[Click here](http://ec2-52-74-208-196.ap-southeast-1.compute.amazonaws.com:8000/timeline.html) to see it live
1010

1111

1212
### UPDATE 1:
1313

1414
[ReactJS Widgets](./reactjs-adminlte/public/src/widgets)
1515

16-
[Click here](http://ec2-52-74-208-196.ap-southeast-1.compute.amazonaws.com:8080/widgets.html) to see a live preview!
16+
[Click here](http://ec2-52-74-208-196.ap-southeast-1.compute.amazonaws.com:8000/widgets.html) to see a live preview!
1717

1818
![](./reactjs-adminlte/screenshots/widgets.png)
1919

@@ -33,12 +33,30 @@ More stuff coming soon. Stay tuned!
3333

3434
- Fork or clone this repo
3535
- Install nodejs and NPM
36-
- Go to the project folder reactjs-adminlte from your terminal and run npm install
37-
- Run node server.js
38-
- Going to [http://localhost:8080](http://localhost:8080) will render an empty dashboard skeleton in the client-side using ReactJS. Clicking on one of the dashboard options on the left pane displays the original dashboards from AdminLTE.
39-
- Go to [http://localhost:8080/widgets.html](http://localhost:8080/widgets.html) to see available widgets in ReactJS.
36+
- Go to the project folder reactjs-adminlte from your terminal and run `npm install`
37+
- Run `node server.js`
38+
- Going to [http://localhost:8000](http://localhost:8000) will render an empty dashboard skeleton in the client-side using ReactJS. Clicking on one of the dashboard options on the left pane displays the original dashboards from AdminLTE.
39+
- Go to [http://localhost:8000/widgets.html](http://localhost:8000/widgets.html) to see available widgets in ReactJS.
4040
- Use [React Developer Tools Chrome Extension](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en) to understand the components hierarchy and structure and to track down bugs.
4141

42+
43+
#### For development
44+
45+
- React Hot Loader can be used to ease your development workflow. This can be done by installing dev dependencies from `package.json` file. If you haven't, then
46+
run `npm install webpack-dev-server` and `npm install react-hot-loader`.
47+
- Then in your HTML, change your javascript bundles' source paths to point to the webpack-dev-server proxy in your `script` tags. So if you have something
48+
like this
49+
50+
`<script src="/dist/js/vendors.js"></script>
51+
<script src="/dist/js/app.bundle.js"></script>`
52+
53+
54+
change this to
55+
56+
`<script src="http://localhost:8080/dist/js/vendors.js"></script>
57+
<script src="http://localhost:8080/dist/js/app.bundle.js"></script>`
58+
59+
4260
This is still a work in progress and will get better over time. Will try and think of more essential features. Looking for feedback and contributions! For any discussions or queries, send an email.
4361

4462
#### Upcoming stuff

reactjs-adminlte/views/dashboard.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,11 @@
6262
<script src="/dist/js/vendors.js"></script>
6363
<script src="/dist/js/dashboardV1.bundle.js"></script>
6464

65+
66+
<!--Use this only in development, while using React Hot Loader -->
67+
<!--
68+
<script src="http://localhost:8080/dist/js/vendors.js"></script>
69+
<script src="http://localhost:8080/dist/js/timeline.bundle.js"></script>
70+
-->
71+
6572
</html>

reactjs-adminlte/views/timeline.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@
3939
<script src="/dist/js/vendors.js"></script>
4040
<script src="/dist/js/timeline.bundle.js"></script>
4141

42+
43+
<!--Use this only in development, while using React Hot Loader -->
44+
<!--
45+
<script src="http://localhost:8080/dist/js/vendors.js"></script>
46+
<script src="http://localhost:8080/dist/js/timeline.bundle.js"></script>
47+
-->
48+
4249
<!--
4350
<script src="../plugins/jQuery/jQuery-2.1.4.min.js"></script>
4451
<script src="../bootstrap/js/bootstrap.min.js"></script>

reactjs-adminlte/views/widgets.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<!--
4545
<script src="http://localhost:8080/dist/js/vendors.js"></script>
4646
<script src="http://localhost:8080/dist/js/widgets.bundle.js"></script>
47-
-->
47+
-->
4848

4949

5050
<!--

0 commit comments

Comments
 (0)