Skip to content

Commit

Permalink
feat: Add CRUD tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
drorganvidez committed Sep 8, 2024
1 parent 13ea825 commit 1ce5702
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _site/assets/js/search-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
},"28": {
"doc": "C.R.U.D. tutorial",
"title": "Create a new module",
"content": "We are going to create the notepad module. To do this, we are going to use the Rosemary CLI: . rosemary make:module notepad . This creates a folder in app/modules/notepad with a number of files inside. Take some time to examine each file and understand how they are related. Dynamic loading of modules . If we would like to check if the module is already listed by the system, we apply: . rosemary module:list . Reboot required! . However, we are not going to see our module there since Flask has a particular way of loading files and modules. We have to restart our Flask server (or the Docker container). After that, our module should be listed. We can also list the current routes of our module with: . rosemary route:list notepad . We should see something like this: . notepad.index GET /notepad . ",
"content": "We are going to create the notepad module. To do this, we are going to use the Rosemary CLI: . rosemary make:module notepad . This creates a folder in app/modules/notepad with several files inside. Take some time to examine each file and understand how they are related. Dynamic loading of modules . If we would like to check if the module is already listed by the system, we apply: . rosemary module:list . Reboot required! . However, we are not going to see our module there since Flask has a particular way of loading files and modules. We have to restart our Flask server (or the Docker container). After that, our module should be listed. We can also list the current routes of our module with: . rosemary route:list notepad . We should see something like this: . notepad.index GET /notepad . ",
"url": "/tutorials/crud_tutorial#create-a-new-module",

"relUrl": "/tutorials/crud_tutorial#create-a-new-module"
Expand Down
2 changes: 1 addition & 1 deletion _site/tutorials/crud_tutorial.html
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ <h2 id="create-a-new-module">
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>rosemary make:module notepad
</code></pre></div></div>

<p>This creates a folder in <code class="language-plaintext highlighter-rouge">app/modules/notepad</code> with a number of files inside. Take some time to examine each file and understand how they are related.</p>
<p>This creates a folder in <code class="language-plaintext highlighter-rouge">app/modules/notepad</code> with several files inside. Take some time to examine each file and understand how they are related.</p>
<h3 id="dynamic-loading-of-modules">


Expand Down
2 changes: 1 addition & 1 deletion tutorials/crud.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ We are going to create the `notepad` module. To do this, we are going to use the
rosemary make:module notepad
```

This creates a folder in `app/modules/notepad` with a number of files inside. Take some time to examine each file and understand how they are related.
This creates a folder in `app/modules/notepad` with several files inside. Take some time to examine each file and understand how they are related.

### Dynamic loading of modules

Expand Down

0 comments on commit 1ce5702

Please sign in to comment.