Skip to content

nurratna/kolla-go-food

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GO-FOOD

Go-Food is a simplified Web Apps based on Ruby on Rails. In This Web Apps will show the items of food and you can order it like Go-Food in Go-Jek Corp.

Getting Started

  • Ruby version

  • System dependencies

  • Configuration

  • Database creation

  • Database initialization

  • How to run the test suite

  • Services (job queues, cache servers, search engines, etc.)

  • Deployment instructions

  • ...

Installing

Install rails

$ gem install rails

check versi rails yang terinstall (rails 5.)

$ rails -v

Running the apps

Pertama, create the project with command 'rails new '

$ rails new go-food

Kemudian, masuk ke direktori go-food dan jalankan server rails

$ cd go-food
$ rails server

Jika server berhasil dijalankan, kamu bisa cek di browser dengan port 3000 localhost:3000 dan akan menampilkan landing page rails Namun jika server gagal dijalankan, kamu perlu mengedit file Gemfile di baris ke 20 # gem 'therubyracer', platforms: :ruby hilangkan comment (hastag) kemudian jalankan perintah install di terminal dan jalankan kembali server

$ bundle install
$ rails server

Generate MVC (Model, View, and Controller)

kamu bisa mengenerate MVC dengan perintah rails generate atau rails g dan cek perubahan/penambahan file apa saja yang digenerate menggunakan perintah git status

$ rails generate Controller Home hello
$ git status

modified config/routes.rb app

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published