Root
File | Summary |
---|---|
Controller.php | This is the main controller of the app. |
ComicController.php | This is the controller dedicated to the view of the comics in the admin section. |
ComicController.php | This is the controller dedicated to the view of the comics in the guest section. |
Comic.php | This is the model for the db of the comics. |
User.php | This is the model for the db of the users. |
comics.php | This is a php with the comics infos. |
ComicsTableSeeder.php | This is the seeder dedicated to the comics. |
DatabaseSeeder.php | This is the general seeder of the app. |
index.php | This is the index file. |
app.js | This is the |
bootstrap.js | HTTPStatus Exception: 429 |
deleteComicElement.js | This is the file js dedicated to the creation of the pop-up during the elimination of the comics in the admin section. |
app.scss | This is the main scss file. |
general.scss | This is a scss file containing general styles. |
_comics.scss | This is the scss file for the comics section in the guest part. |
_footer.scss | This is the sccs file for the footer. |
_header.scss | This is the scss file for the header. |
_loader.scss | This is the scss file for the loader. |
_variables.scss | This is a scss file containing the global variables. |
home.blade.php | This is the homepage of the admin section. |
create.blade.php | This is the create page for the comic model in the admin section. |
edit.blade.php | This is the edit page for the comic model in the admin section. |
index.blade.php | This is the index page for the comic model in the admin section. |
show.blade.php | This is the show page for the comic model in the admin section. |
form.blade.php | This is the form partial file for the comic model in the admin section. |
comics.blade.php | This is the page for the comics in the guest section. |
home.blade.php | This is the homepage of the guest section. |
app.blade.php | This is the main layout of the page. |
footer.blade.php | This is the partial file containing the footer. |
header.blade.php | This is the partial file containing the header. |
web.php | This is the main php dedicated to the routes. |
Before you begin, ensure that you have the following prerequisites installed:
- ℹ️ PHP: Ensure you have PHP installed on your system. Laravel requires PHP 7.3 or later. You can check the installed PHP version by running the php -v command in your terminal.
- ℹ️ Composer: Composer is a PHP package manager widely used with Laravel. Make sure you have it installed on your system. You can verify this by running the composer --version command in the terminal.
- ℹ️ Database: If the Laravel application uses a database, you'll need to ensure it's configured correctly. Laravel supports various databases, including MySQL, PostgreSQL, SQLite, and SQL Server.
- ℹ️ Web Server: Laravel can run on various web servers, but one of the most common choices is Apache or Nginx. Ensure you have a web server configured and running on your system.
- Clone the laravel-dc-comics repository:
git clone https://github.com/AnielloPiscopo/laravel-dc-comics
- Change to the project directory:
cd laravel-dc-comics
-
Copy the .env.example file to a new file named .env and set the necessary environment variables for configuring the application, such as the database connection.
-
Install the dependencies:
composer install
- Generate a secret key for the Laravel application:
php artisan key:generate
- Run database migrations (if needed) to create database tables.
php artisan migrate
- Run database seeders (if needed) to fill database tables.
php artisan db:seed
- Use:
php artisan serve
2: Go to http://localhost:8000
vendor/bin/phpunit