Skip to content

Commit d1a9180

Browse files
Update todo.md
1 parent b183824 commit d1a9180

File tree

1 file changed

+9
-48
lines changed

1 file changed

+9
-48
lines changed

docs/tutorial/todo.md

Lines changed: 9 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -22,65 +22,26 @@ You will write less than 100 lines of code, and the tutorial should take about 1
2222

2323
You can find the older application source code here:
2424

25-
2625
### Skills required
2726

28-
Working knowledge of Rails and Hyperloop required
29-
30-
### Chapter 1: Setting Things Up
27+
Working knowledge of Rails required
3128

32-
Create a new rails application
33-
```ruby
34-
rails _5.2.0_ new hyperloop_todo
35-
```
36-
_5.2.0_ will insure you are creating a rails 5.2 appear (tested with 5.0 and 5.1)
29+
#### Pre-Requisites
3730

38-
Add Hyperloop to your Gemfile
31+
+ Yarn must be installed (https://yarnpkg.com/en/docs/install#mac-stable)
3932

40-
Until our official release, add the following to your Gemfile:
41-
```ruby
42-
...
43-
# lap0 will use the latest release candidate
44-
gem 'hyperloop', '~> 1.0.0.lap0', git: 'https://github.com/ruby-hyperloop/hyperloop.git', branch: 'edge'
45-
gem 'hyperloop-config', '~> 1.0.0.lap0', git: 'https://github.com/ruby-hyperloop/hyperloop-config.git', branch: 'edge'
46-
...
47-
```
33+
### Chapter 1: Setting Things Up
4834

49-
then
50-
```ruby
51-
bundle install
52-
```
35+
Simply run the command below to create a new Rails app with Hyperstack all configured:
5336

54-
Once the Hyperloop Gem and all its dependencies have been installed, it's time to run the hyperloop install generator.
55-
```ruby
56-
rails g hyperloop:install
5737
```
58-
59-
The generator creates the hyperloop structure inside the /app directory :
60-
```ruby
61-
/app/hyperloop/
62-
/app/hyperloop/components
63-
/app/hyperloop/models
64-
/app/hyperloop/operations
65-
/app/hyperloop/stores
38+
rails new MyApp -m https://rawgit.com/hyperstack-org/hyperstack/edge/install/rails-webpacker.rb
6639
```
6740

68-
And updates your app/assets/javascripts/application.js file adding these lines:
69-
```ruby
70-
//= require hyperloop-loader
71-
Opal.OpalHotReloader.$listen() // optional (port, false, poll_seconds) i.e. (8081, false, 1)
72-
```
41+
#### Start the Rails app
7342

74-
To be sure everything is setting up correctly, check your app/assets/javascripts/application.js:
75-
```ruby
76-
...
77-
//= require rails-ujs
78-
//= require activestorage
79-
//= require turbolinks
80-
//= require_tree .
81-
//= require hyperloop-loader
82-
Opal.OpalHotReloader.$listen() // optional (port, false, poll_seconds) i.e. (8081, false, 1)
83-
```
43+
+ `foreman start` to start Rails and OpalHotReloader
44+
+ Navigate to `http://localhost:5000/`
8445

8546
Run foreman
8647
```ruby

0 commit comments

Comments
 (0)