Giter Site home page Giter Site logo

equivalent / my_awesome_lambda-lamby Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 1.0 487 KB

example RoR Lambda app from Lamby Quick Start page https://lamby.custominktech.com/docs/quick_start

Home Page: https://ror.serverless-ruby.org/

Dockerfile 0.13% Ruby 53.48% Makefile 0.30% JavaScript 8.07% CSS 1.38% HTML 28.41% Shell 8.12% SCSS 0.11%
aws-lambda lamby ruby ruby-on-rails serverless-ruby rails-application

my_awesome_lambda-lamby's Introduction

Lamby test project

Ipossible is here. You can now run Ruby on Rails applications on AWS Lambda

All thanks to mr Ken Collins and his briliant project Lamby

We have Serverless Ruby for couple of years, now we will have serverless Ruby on Rails. How cool is that !?

This repo is a test project where I test limitations of what is possible and what is not.

It's alive !

hosted at: https://ror.serverless-ruby.org/

I'm using Cloudfront as a DNS for custom domain for https

Direct AWS API Gateway link: https://1m1x0sga74.execute-api.eu-west-1.amazonaws.com/production (JS will not load as it's /production)

Code desicions:

  • I'm loading app JS via Webpacker (StimulusJS controllers)
  • webpacker needs to be compiled via rails webpacker:compile before deploy (check bin/_build)
  • Asset pipeline is not that good idea. I tried it first but found it too much work compared to Webpacker for this particular setup (Lambda)
  • I'm loading Bootstrap Css & JS via CDN (because this is serverless platform, it's better this way)

original Readme

Made with Lamby's quick start to create a new Rails application for AWS Lambda. Details:

  • Rails v6.x on Ruby 2.7 runtime.
  • Integrated JavaScript development.
  • Compiles CSS/JS assets with LibSass & Webpacker.
  • No ActiveRecord. Read our Database Options guides.

Lamby: Simple Rails & AWS Lambda Integration using Rack.

Setup & Deploy

$ ./bin/bootstrap
$ ./bin/setup
$ ./bin/deploy

Next Steps

  • Provide a new value for the SECRET_KEY_BASE. Alternatively, you can set this using Dotenv & SSM Parameter Store in the Environments & Configuration section of your build file.
  • Using JavaScript? Webpacker is setup and ready to go, but we commented out the yarn install in the ./bin/_setup script. Uncomment to enable. Also uncomment both the CSS & JavaScript include tags in the app/views/layouts/application.html.erb file.

Related resources

my_awesome_lambda-lamby's People

Contributors

equivalent avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

iammeher

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.