chas-academy / u05-imdb-clon-u05-team-9-angels

u05-imdb-clon-u05-team-9-angels created by GitHub Classroom
3 stars 1 forks source link

IMDB KLON U05 CHAS ACADEMY GRUPP 9

Table of Contents

Projekt

Den här uppgiften går ut på att i grupp implementera en fullständig webbplats som nyttjar en databas genom PHP. Temat för uppgiften är filmer och den resulterande webbplatsen ska fungera likt den populära sidan IMDb (International Movie Database).

Mål

Ackompanjerande kravspecifikation

I dokumentet nedan finns det en lös kravspecifikation som ni i grupp ska nyttja under arbetets gång. Lägg märke till att där finns ytterligare icke-funktionella krav i denna specifikation (se sista sidan). I dokumentetet är där även specifierat vilka routes som förväntas vara tillgängliga, för att ge en uppfattning om hur allt ska struktureras.\ Där är även sektioner för personas och user stories som ni i gruppen måste utöka.\ Slutligen innehåller det även avsnitt för wireframes och en sitemap (se dokumentet för exempel på hur det kan se ut).

Kravspec

https://docs.google.com/document/d/1kY206U6sYIu63MptUtyID6kKLp5pSk-tK75Nn5Tii2c/edit?usp=sharing

Inlämning

Den färdiga inlämningen ska deployas så att den finns tillgänglig på webben (vi återkommer med förslag på ställen).\ Källkoden med versionshistorik ska finns länkad

Getting Started

Prerequisites

Get the project running

Cloning the project

To clone the project, go to the terminal and type in:

git clone https://github.com/chas-academy/u05-imdb-clon-u05-team-9-angels.git

Installing dependencies

Run the composer install command in the root of your project directory to install all required dependencies.

(Optional)\ Run npm install if you intend to develop the app.

Configuration

You will need to create a .env file and configure it before running Laravel. There is a .env.example file you can use as template for the configuration.\ Type in the following command to make a copy of this file:

cp .env.example .env

Open up the .env file and put in your database configurations. These variables are prefixed with DB.

You will also need to generate an app key, type in:

php artisan key:generate

Database

We need to make a database migration before the app will be able to fetch and save data.

To make a database migration:

php artisan migrate

To wipe the database before migration:

php artisan migrate:fresh

We also provide a seeder to populate the database with data so you don't need to do it yourself. Just add a --seed flag at the end of the migration command, like this:

php artisan migrate:fresh --seed

Running the app

We will use Artisan command to start a local development server at http://127.0.0.1:8000:

php artisan serve