Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devteds/e4-rails-api-pagination
Source code of Rails API application developed in episode 4 - https://youtu.be/DgfTbTB5ypQ
https://github.com/devteds/e4-rails-api-pagination
docker docker-compose json-api mysql rails rails-api rest-api
Last synced: 13 days ago
JSON representation
Source code of Rails API application developed in episode 4 - https://youtu.be/DgfTbTB5ypQ
- Host: GitHub
- URL: https://github.com/devteds/e4-rails-api-pagination
- Owner: devteds
- Created: 2017-02-04T05:01:06.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-21T18:27:18.000Z (almost 8 years ago)
- Last Synced: 2024-11-14T02:37:48.639Z (2 months ago)
- Topics: docker, docker-compose, json-api, mysql, rails, rails-api, rest-api
- Language: Ruby
- Homepage:
- Size: 20.5 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
Learn how to add pagination to an API in Rails. Application is built and run using docker & docker-compose.
[Episode video link](https://youtu.be/DgfTbTB5ypQ)
[![Episode Video Link](https://i.ytimg.com/vi/DgfTbTB5ypQ/hqdefault.jpg)](https://youtu.be/DgfTbTB5ypQ)
## Tested on
* macOS - 10.12
* Docker - 1.12.6
* Docker compose - 1.9.0## Run this application
```
git clone git clone https://github.com/devteds/e4-rails-api-pagination.git
cd e4-rails-api-pagination
# edit docker-compose.yml to set the mysql & rails ports to be mapped on host
docker-compose build
bin/d_rails db:migrate
bin/d_rails db:seed
# Use REST client or curl to browse the APIs
http://localhost:3002/posts
```