Back to home

blog/

rails

Version: 0.7.1

Last Updated: Unknown


Basic Lift Template

Use this tempalate to generate new lift projects.

Required

VariableData TypeInfo
namestringName of the blog post

Module files

1---
2basedir: content/blog
3---
4---
5date: "<%= name.split('-').filter((_data, index) => index < 3).join("-") %>"
6image: https://cdn.dennisokeeffe.com/assets/<%= name %>/main-image.webp
7title: <%= _.startCase(name.split('-').filter((_data, index) => index >= 3)) %>
8description: <%= description %>
9tags: "ruby,ruby-on-rails"
10icons: "dok,ruby,rails"
11series:
12 - "50 Days of Ruby": 0
13---
14
15This post will ...
16
17Source code can be found [here](https://github.com/okeeffed/copy-replace)
18
19## Prerequisites
20
211. Basic familiarity with setting up a [new Rails project](https://guides.rubyonrails.org/getting_started.html).
22
23## Getting started
24
25We will use Rails to initialize the project `copy-replace`:
26
27```s
28# Create a new rails project
29$ rails new demo-rails-with-react-frontend -j esbuild
30$ cd demo-rails-with-react-frontend
31
32# Start the server
33$ bin/rails s
34```
35
36At this stage, our project is now ready to start working with.
37
38## ...
39
40...
41
42## Summary
43
44Today's post demonstrated how to ...
45
46## Resources and further reading
47
48- [Rails getting started](https://guides.rubyonrails.org/getting_started.html)
49- [Source code](https://github.com/okeeffed/copy-replace)
50
51_Photo credit: [`user`](https://unsplash.com/@user)_

Install


Lift generate


Repository

https://github.com/okeeffed/pkg-lift-blog

Sections