After a clean install of this repo, you'll need to run bundle install
inside
the CarriesCloset
root folder. This will install all needed requirements.
You'll need to have MySQL installed and running locally.
Depending on whether or not you've run the Rails server recently, or if you're having troubles with your database/server, you'll want to run the following:
bin/rails db:drop
bin/rails db:create && bin/rails db:migrate && bin/rails db:seed
- Always use
bin/rails
when running commands from the terminal (this will point to the proper Carrie's Closet project) bin/rails console --sandbox
will create a sandboxed version of a REPL-style console, loaded with all the classes and data from your running app. Any changes made in the sandbox will be reverted when youexit
.bin/rails generate Tweet user:references body:text likes:integer
will create aTweet
model that belongs to aUser
model. EachTweet
will be stored in the database with abody
text field and alikes
counter.bin/rails destroy Tweet
will revert all generated files for the previousTweet
model.