Skip to content
Michael Holler edited this page Nov 16, 2013 · 1 revision

Installation for this project is basically the same as the usual Laravel installation, which you can find on their site. After doing going through the standard Laravel installation process, there are just a few small things you have to do before you can be up and running.

Creating an Empty Database

You'll have to create a database called udacityMessage and a user udacity to run this project. To do this, log into MySQL and run:

mysql> CREATE DATABASE udacityMessage;
mysql> GRANT ALL PRIVILEGES ON `udacityMessage`.* TO `udacity`@`localhost` IDENTIFIED BY `password`;

Modifying Config Files

Modify the database credentials in app/config/database.php to reflect the database you created above.

Migrating Database

Last thing we need to do is create the database tables. Do this by running:

php artisan migrate

And you're done!

If you want, you can optionally run phpunit to make sure everything runs as expected, or seed the database with some default seed data so you can test it out right away with php artisan db:seed --class=TestDatabaseSeeder.

Clone this wiki locally