tongueroo / demo-rails

demo rails app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

BoltOps Badge

Simple demo rails app. It has a demo controller that shows successful access to the database.

Rails Setup

git clone https://github.com/tongueroo/demo-rails
cd demo-rails
# edit config/database.yml with the desired database endpoint
bundle
rails db:create db:migrate
rails server # start server

Now you can should be able to go to the url endpoints to see the demo page.

Here's the relevant code:

Jets Afterburner

To deploy this Rails app to AWS Lambda you can use Jets Afterburner.

cd demo-rails
gem install jets # outside of Gemfile
mkdir -p .jets/project
vim .jets/project/.env # add your env variables
jets deploy

Here's the blog article that covers it: Jets Afterburner: Serverless Rails on AWS Lambda in 5 Minutes

Also here's the link to the Live Demo

If you find Jets interesting, please it a GitHub star tongueroo/jets. It helps others find out about the project. I'd appreciate it!

About

demo rails app


Languages

Language:Ruby 72.2%Language:HTML 19.1%Language:CSS 4.6%Language:JavaScript 2.7%Language:Dockerfile 0.8%Language:CoffeeScript 0.5%Language:Shell 0.1%