tongueroo / jets-example-api

Jets Example API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API Example Project

BoltOps Badge

Simple API Example Jets app. It has a posts_controller.rb demonstrates a RESTful API.

Setup

git clone https://github.com/tongueroo/demo-example-api demo
cd demo
# 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.

Deploy

Next, we'll deploy the app to AWS Lambda with jets deploy.

cd demo
vim .env.development.remote # add your env variables
jets deploy

Here's the blog article and live demo links:

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

Jets Example API


Languages

Language:Ruby 63.1%Language:HTML 34.0%Language:Procfile 1.7%Language:JavaScript 1.3%