You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 19, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: source/installation.html.md
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,13 @@ title: Installation
3
3
---
4
4
# Installation
5
5
6
-
**Note:** The Hyperloop gems are in a process of being renamed. The links below will take you to the correct Github projects but you might find the name of the project does not quite match the name of the gem on this page. This will be addressed over time as the gems are renamed. HyperReact was previously known as Reactrb.
6
+
There are several ways to install Hyperloop into your development environment.
7
+
8
+
+ Experimenting online in the Opal playground
9
+
+ Running exclusively in your browser with Hyperloop Express
10
+
+ Integrating with the Rails Asset Pipeline
11
+
+ Building a single `application.js` with Rake
12
+
+ Using NPM and Webpack to require all your JavaScript components
7
13
8
14
## Opal Playground
9
15
@@ -311,6 +317,15 @@ Two things to note about the code above:
311
317
312
318
As a final note, the resulting JS file may be a little large, so you might want to Gzip or uglify it.
313
319
320
+
## Deployment
321
+
322
+
There are a few deployment specific considerations:
323
+
324
+
+ The resulting compiled JavaScript files can be quite large, so you might want to add a minimise, uglify or gzip step
325
+
+ Some free deployment PaaS (Heroku for example) include low levels of memory and system resources. HyperReact may be configured in such a way that it is pre-rendering all pages before they are delivered to the browser and this can be an issue to the PaaS in a low memory environment. If the server is constrained it is better to turn pre-rendering off.
326
+
327
+
There is a most excellent [Tutorial written by Frederic ZINGG](https://github.com/fzingg/hyperloop-showcase-heroku) which takes you through a step by step guid to deploying on Heroku.
328
+
314
329
## Next Steps
315
330
316
331
Check out [the tutorials](/tutorials) to learn more.
0 commit comments