Introductory Hello Examples with Jets.
- Function: function/simple.rb
- Job: jobs/hello_job.rb
- Controller: controllers/posts_controller.rb
- Route: config/routes.rb
Here's the blog post: Hello World Examples: Jets Introduction Series Part 4
git clone https://github.com/tongueroo/jets-hello-examples hello
cd hello
# edit config/database.yml with the desired database endpoint
bundle
jets db:create db:migrate
jets server # start server
Now you should be able to go to these urls to see the app.
- http://localhost:8888
- http://localhost:8888/hello # demo route
Next, we'll deploy the app to AWS Lambda with jets deploy.
cd demo
vim .env.development.remote # add your env variables
jets deploy
If you find Jets interesting, please it a GitHub star tongueroo/jets. It helps others find out about the project. I'd appreciate it!