seanmisra / a4

Dog Data: 4th project for CSCI E-15 at Harvard Extension - Spring '17 semester 🐕
http://a4.mizranca.com
0 stars 0 forks source link
composer dogs dwa15 eloquent-orm jquery laravel mysql

Dog Data 🐕

Premise

Dog Data was created by Sean Misra for Dynamic Web Applications (CSCI-E 15) at Harvard Extension, during the Spring 2017 semester. This project constitutes the final assignment of the course and is meant to emphasize Laravel, MVC, MySQL, form processing, and Eloquent ORM. The site is built with the LAMP stack (Linux, Apache, MySQL, and PHP).

Installation

  1. Clone repo: git clone git@github.com:seanmisra/a4.git
  2. Within the a4 folder, add composer dependencies: composer install
  3. Create an .env file: cp .env.example .env
  4. Generate an app key: php artisan key:generate
  5. Set the document root to the public folder of the a4 directory
  6. In the .env file, ensure the database settings are configured correctly:
    • The DB_CONNECTION should be "mysql"
    • Mostly likely, the DB_HOST and DB_PORT should be "localhost" and "3306" respectively
    • The DB_DATABASE should be a database created to be used with this app (where all tables will go)
    • The DB_USERNAME should be root.
    • The DB_PASSWORD should be root for MAMP users and left blank for XAMPP users
  7. Run migrations and seed the database: php artisan migrate:refresh --seed

Credits