Skip to content

Commit

Permalink
enable asciinema
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejkorsan committed Dec 10, 2024
1 parent b5ca37d commit 685d278
Show file tree
Hide file tree
Showing 4 changed files with 452 additions and 206 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ title: Installation
sidebar_position: 2
---

import AsciinemaWidget from '@site/src/components/Asciinema';


## Quick setup

Expand All @@ -22,7 +24,10 @@ The template will:
rails new -m https://railseventstore.org/new APP_NAME
```

<script id="asciicast-554171" src="https://asciinema.org/a/554171.js" async></script>

<AsciinemaWidget src="https://asciinema.org/a/554180.js" id="asciicast-554180"
/>


Obviously, you can specify all the [options](https://guides.rubyonrails.org/command_line.html#rails-new) which `rails new` takes, e.g. database you want to use:

Expand All @@ -40,7 +45,7 @@ Simply `cd` to your Rails application root directory and run:
bin/rails app:template LOCATION=https://railseventstore.org/new
```

<script id="asciicast-554180" src="https://asciinema.org/a/554180.js" async></script>


The <a href="https://railseventstore.org/new">template</a> will:

Expand Down Expand Up @@ -168,12 +173,12 @@ gem "rails_event_store"

After running `bundle install`, Rails Event Store should be ready to be used.

<div class="px-4 text-blue-600 bg-blue-100 border-l-4 border-blue-500" role="alert">
<p class="text-base font-bold">Kickstarting new Rails application with RailsEventStore</p>
<p class="inline-block text-base">If you're setting up a new Rails app, there is even a faster way to begin with RailsEventStore. The <a href="https://railseventstore.org/new">template</a> will install required gems, perform initial database migration, pre-configure event browser and more — <code class="bg-transparent">rails new -m https://railseventstore.org/new APP_NAME</code></p>
<div className="px-4 text-blue-600 bg-blue-100 border-l-4 border-blue-500" role="alert">
<p className="text-base font-bold">Kickstarting new Rails application with RailsEventStore</p>
<p className="inline-block text-base">If you're setting up a new Rails app, there is even a faster way to begin with RailsEventStore. The <a href="https://railseventstore.org/new">template</a> will install required gems, perform initial database migration, pre-configure event browser and more — <code className="bg-transparent">rails new -m https://railseventstore.org/new APP_NAME</code></p>

<p class="inline-block text-base">
Make sure to check generated <code class="bg-transparent">config/initializers/rails_event_store.rb</code> for initial configuration.
<p className="inline-block text-base">
Make sure to check generated <code className="bg-transparent">config/initializers/rails_event_store.rb</code> for initial configuration.
</p>
</div>

Expand Down
Loading

0 comments on commit 685d278

Please sign in to comment.