Clone the source code from Github to your local machine, for example: ~/Code/codedaily-v2
Run the following command to setting up the project dependencies
bundle install
You must have mysql
installed on your local machine.
If your mysql server
does not have codedaily_v2
database yet, run the following command to login as root
:
$ mysql -u root -p
Then run this query to create the database:
CREATE DATABASE codedaily_v2
When everything is ok, run the following command to start server:
rails s
Happy coding ^^