Skip to content

CS2TP36/team-project

Repository files navigation

CS2TP Team Project

Team number: 36

Site currently available at https://thesportswear.website/

About

Team members:

Installation

  • Install PHP and composer (or use a package like Herd)
  • Clone this to a place locally (and know where)
  • Copy .env.example to .env to initialise env (don't just rename it that breaks it for everyone else when you push)
  • Open a terminal in the root of the cloned folder
  • Install required files with composer install
  • Construct the database with php artisan migrate (have to agree to create a database if using sqlite)
  • Generate a key with php artisan key:generate
  • Fill database with predefined data using php artisan db:seed
  • Done (can serve with php artisan serve for testing)

Re-populating the Database

  • Rebuild the database php artisan migrate:refresh
  • Add the data php artisan db:seed
  • Done