MeJaM35 / Food-Log

A Ruby on Rails based food logger that keeps track of the food I consume

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WIP


Food Logger

Installation

Install Ruby

Install Rails

To install Rails, run the following command:

gem install rails

Creating a New Rails App

To create a new Rails application, use the following command, replacing <app-name> with your desired application name:

rails new <app-name>

Starting the Rails Server

Navigate to your application directory and start the Rails server with:

rails server

Creating a New Table in Rails

Using Rails Model

To create a new model, use the following command, replacing <model-name> with your desired model name:

rails generate model <model-name>

Using Rails Scaffold (Not Recommended)

To create a new scaffold, use the following command, replacing <model-name> with your desired model name:

rails generate scaffold <model-name>

Migrating the Database

To apply the migrations and update the database schema, use the following command:

rails db:migrate

About

A Ruby on Rails based food logger that keeps track of the food I consume


Languages

Language:Ruby 64.3%Language:HTML 21.7%Language:Batchfile 6.3%Language:Dockerfile 4.5%Language:JavaScript 2.8%Language:Shell 0.4%Language:SCSS 0.0%