Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tongueroo/jets-example-api
Jets Example API
https://github.com/tongueroo/jets-example-api
Last synced: about 1 month ago
JSON representation
Jets Example API
- Host: GitHub
- URL: https://github.com/tongueroo/jets-example-api
- Owner: tongueroo
- Created: 2019-01-13T19:53:24.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-08T04:23:55.000Z (12 months ago)
- Last Synced: 2024-10-14T22:16:44.084Z (3 months ago)
- Language: Ruby
- Size: 24.4 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# API Example Project
[![BoltOps Badge](https://img.boltops.com/boltops/badges/boltops-badge.png)](https://www.boltops.com)
Simple API Example Jets app. It has a [posts_controller.rb](app/controllers/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 serverNow you should be able to go to these urls to see the app.
* http://localhost:3000
* http://localhost:3000/posts # demo CRUD## Deploy
Next, we'll deploy the app to AWS Lambda with [jets deploy](http://rubyonjets.com/reference/jets-deploy/).
cd demo
vim .env.development.remote # add your env variables
jets deployHere's the blog article and live demo links:
* Blog Post: [Build an API with the Jets Ruby Serverless Framework](https://blog.boltops.com/2019/01/13/build-an-api-service-with-jets-ruby-serverless-framework)
* Here's the link to the [Live API Demo](https://api.demo.rubyonjets.com/)If you find Jets interesting, please it a GitHub star [tongueroo/jets](https://github.com/tongueroo/jets). It helps others find out about the project. I'd appreciate it!