rails new ror-app-name --api
This step is for creating a very basic level of model for us to work in. If you know already, or wish to apply your own custom models with relationships you can skip this step.
### Keybase proof | |
I hereby claim: | |
* I am themaleem on github. | |
* I am maleem (https://keybase.io/maleem) on keybase. | |
* I have a public key ASBoXluzOrQXZY0jClUBexvHHBY32NjNouzwFnSHa91t2go | |
To claim this, I am signing this object: |
# for pagination (create a new file) | |
def get_paginated_list(data, url, start, limit): | |
count = len(data) | |
# force numericalize start and limit | |
start = int(start) | |
limit = int(limit) | |
# build json response |
#!/bin/sh | |
# | |
# Docker install script | |
# | |
# Run this script with Administration priviledges (sudo) | |
# | |
echo "------------ Install pre-requisites ---------------------" | |
# Install packages to allow apt to use a repository over HTTPS: |
// int speed = 25; | |
// System.Console.WriteLine("The car was" + "Travelling at the speed of " + speed + " MPH"); | |
// int age; | |
// age = 25; | |
// age++; | |
// age += 1; | |
// age--; | |
// age -= 1; |
rails new ror-app-name --api
This step is for creating a very basic level of model for us to work in. If you know already, or wish to apply your own custom models with relationships you can skip this step.