The sample application is taken from Agile Web Development with Rails, 2nd Edition, published by the Pragmatic Bookshelf and reproduced with permission; see the license file for terms of use. Please visit www.PragmaticProgrammer.com for more great books to help keep you on top of your game.
The Depot sample application requires the MySQL database server.
Before you can run this project, you must create at a minimum the depot_development database, as described below. You can also create the test and production databases if desired.
To Create the Depot Databases:
mysqladmin -u root -p create depot_developmentNote: If the root user does not have a required password, omit the -p argument.
The database.yml file is already configured to use the MySQL adapter and the three depot databases. You do not need to do any configurations unless the root user requires a password.
To Specify the Password for the Root User:
This sample project contains the schema migrations for creating and seeding the database tables.
To Create the Depot Tables:
You are now ready to run the Depot application.
To Run the Depot Application:
http://localhost:8080/Depot_Application/admin
http://localhost:3000/admin
http://localhost:8080/Depot_Application/info/who_bought/1 http://localhost:8080/Depot_Application/info/who_bought/2 http://localhost:8080/Depot_Application/info/who_bought/3
http://localhost:3000/info/who_bought/1 http://localhost:3000/info/who_bought/2 http://localhost:3000/info/who_bought/3