【文件属性】:
文件名称:recipes:使用Ruby和PostgreSQL添加食谱的数字食谱
文件大小:1.05MB
文件格式:ZIP
更新时间:2021-05-07 06:30:04
Ruby
食谱盒
Epicodus的Ruby / ActiveRecord练习,2015年8月27日
珍妮丝·邓恩(Janice Dunn)和珍妮丝·拉塞特·帕克森(Janice Laset-Parkerson)
描述
该应用程序将允许用户添加配方和说明的食谱,用不同的类别标记它们,并编辑配方和类别。
设置
打开命令终端
git clone https://github.com/(fill in)
cd recipes导航到项目目录
bundle以安装程序依赖项
postgres启动postgres服务器
打开一个新的命令终端
'rake db:create'创建数据库
'rake db:migrate'创建数据库表
'rake db:test:prepare'创建测试数据库
'psql'打开postgres
ruby app.rb启动sinatra服务器
在您的Web浏览器中导航到localh
【文件预览】:
recipes-master
----user_stories.md(910B)
----.rspec(31B)
----database_schema.xml(4KB)
----db()
--------migrate()
--------schema.rb(2KB)
----public()
--------style.css(229B)
--------img()
----views()
--------category.erb(2KB)
--------layout.erb(1KB)
--------index.erb(192B)
--------categories.erb(739B)
--------recipe.erb(1KB)
--------recipe_update.erb(2KB)
--------recipes.erb(1KB)
----spec()
--------instruction_spec.rb(88B)
--------ingredient_spec.rb(87B)
--------category_pages_spec.rb(369B)
--------recipe_pages_spec.rb(1015B)
--------spec_helper.rb(629B)
--------recipe_spec.rb(783B)
--------category_spec.rb(561B)
----app.rb(3KB)
----README.md(2KB)
----config()
--------database.yml(121B)
----lib()
--------recipe.rb(206B)
--------ingredient.rb(64B)
--------instruction.rb(65B)
--------category.rb(114B)
----Gemfile(245B)
----Rakefile(113B)
----Gemfile.lock(2KB)