Git Product home page Git Product logo

kolla-go-food's Introduction

GO-FOOD - GO-SCHOLAR RoR

Simplified GO-FOOD application based on website using Ruby on Rails. One of many projects in GO-SCHOLAR Ruby on Rails class. (Oct-Dec 2017)

Important Notes

This application using Ruby on Rails 5.1.4 on Linux Ubuntu 16.04 (Xenial). There are some important notes :

  • RoR using MVC Architecture
  • rails new go-food -> Creating new ruby on rails project named go-food
  • rails server -> starting rails server in development environment (default port : 3000)
  • rails server -e production -> starting rails server in production environment (will need some extra configurations)
  • If execjs error occurs when starting server, try to uncomment gem 'therubyracer' in Gemfile, then execute bundle and start server again.
  • rails generate ... -> rails command to create/generate many things such as controller, model, view, migration, etc. for example rails generate controller home hello will create a controller named home_controller with action method hello
  • Migration files are used to generate query to create and manipulate tables
  • In rails convention, model name is singular and start with one uppercase letter followed by table name in plural and all letter in downcase. Example : model User followed by table users
  • If rails generate a model, it will create a migration file automatically
  • rails console -> enter in rails console, doing some debugging process:
  • rails db:create -> for initial database creation
  • rails db:migrate -> doing database migration of migration files
  • rails db:rollback -> Revert/undo last migration process
  • <% something %> -> process something without display it to the screen, i.e : if, each, etc
  • <%= something %> -> display it to the screen, i.e : display a variable

Complete Documentation for Ruby on Rails

kolla-go-food's People

Contributors

danangww avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.