Thanks to visit codestin.com
Credit goes to github.com

Skip to content

buxiaoliang/homeLibrary

Repository files navigation

Home Library

This is project to maintain stuffs in home including books, clothes etc.

Configuration

Database

  • rails g model User name:string email:string password_digest:string remember_digest:string –force

  • rake db:migrate

Services

How to run

rails server

localhost:3000/

How to develop

  • rails new blog

  • rake routes

  • rails g controller articles: rails g controller users(controller name) new(action name)

  • rails g model articles

  • bundle install: install listed gem in Gemfile

Console

rails console

Example: User.create(name: “Michael Hartl”, email: “[email protected]”,password: “foobar”, password_confirmation: “foobar”)

Heroku

immense-earth-27752.herokuapp.com/

Run in Heroku:

  • heroku version

  • heroku login

  • heroku keys:add

  • heroku create

  • git push heroku master

Heroku commands:

  • heroku run rake db:migrate

  • heroku run bash

  • heroku ps:scale web=1

  • heroku ps

  • heroku open

  • heroku logs –tail

  • heroku run rails console

Please feel free to use a different markup language if you do not plan to run rake doc:app.

About

Home Library Management

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published