Skip to content

franfun/WeTransferClone

 
 

Repository files navigation

Vorbereitung

  • Installierter MYSQL-Server (z.b. mit MAMP)
  • Leere Datenbank Name "WeTransferClone"
  • Klonen des gesamten Projekts
  • Erstellen des FileStack DEMO Accounts bzw. Free plans

Installation

Zu aller erst wechseln wir in das root Verzeichnis des WeTransferClone-Projekts. Hier führen wir nacheinander folgende Befehle aus:

  • php composer update --no-scripts
  • cp .env.example .env
  • php artisan key:generate

Als nächstes bearbeiten wir noch die kopierte .env datei und passen den MYSQL DB Zugang und den Filestack API key an. Der hinterlegte Key würde ebenfalls funktionieren jedoch sieht man dann in seinem Filestack account keine Dateien.

  • vim .env

Wenn die Datenbank richtig konfiguriert ist führen wir anschließend folgenden Befehl aus und bestätigen mit "yes":

  • php artisan migrate

Unsere Datenbank sollte nun einige Tabellen wie "users", "files" und "migrations" beinhalten.

Um einen kleinen apache server zu starten und nichts nachinstallieren zu müssen führen wir nun:

  • php artisan serve

aus. Auf 127.0.0.1:8000 sollte nun eine Webapplikation erreichbar sein. Neuen Account Registrieren und los gehts!

Known Problem

  • Wird auf der Filestack instanz ein Bild gelöscht, weiss die Applikation nichts davon und wird nicht benachrichtigt.
  • Wird eine Referenz zu einem Filestack Bild in der "files" Datenbank gelöscht ist das Bild zwar noch auf Filestack vorhanden kann aber innerhalb der Applikation nichtmehr gefunden werden

Möglichkeiten diese Probleme zu minimieren

  • Keine Dateireferenzen Datenbank-seitig löschen.
  • Implementierung einer Löschfunktion welche sich den Problemen annimmt und die Dateien sowohl bei Filestack als auch Datenbank-seitig löscht.
  • Keine Bilder Filestack seitig löschen

Interessante Dateien und Pfade

Controller

app/http/Controllers/ FileController/HomeController

Models

app/ File/User

Migrationen

database/migrations

Javascript

public/js/filepicker.js

Views

resources/views

Routen

routes/web.php

Build Status Total Downloads Latest Stable Version License

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as:

Laravel is accessible, yet powerful, providing tools needed for large, robust applications. A superb combination of simplicity, elegance, and innovation give you tools you need to build any application with which you are tasked.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of any modern web application framework. The Laravel documentation is thorough, complete, and makes it a breeze to get started learning the framework.

If you're not in the mood to read, Laracasts contains over 900 video tutorials on a range of topics including Laravel, modern PHP, unit testing, JavaScript, and more. Boost the skill level of yourself and your entire team by digging into our comprehensive video library.

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell at taylor@laravel.com. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 60.0%
  • CSS 35.0%
  • PHP 3.9%
  • HTML 1.1%