This guide outlines the steps required to clone a TallStack project from a remote repository, install its dependencies using Composer and npm, migrate the database, and run it locally on your machine. It also includes a guide for running Filament PHP, which is a Laravel package that provides a set of pre-built admin interfaces.
Before you begin, ensure that the following software is installed on your machine:
- Git: a version control system used for managing source code.
- PHP: a server-side scripting language that runs on the web server.
- Composer: a package manager used for managing PHP dependencies.
- Node.js: a JavaScript runtime environment that allows you to run JavaScript code on the server.
- MySQL: a relational database management system.
-
Open a terminal or command prompt window.
-
Navigate to the directory where you want to store the cloned project.
-
Run the following command to clone the project:
git clone https://github.com/kogomatthew/filamentphp-tall-stack.git
-
Navigate to the root directory of the cloned project.
-
Run the following command to install the project's PHP dependencies:
composer install
This will install all the required packages and dependencies that the project needs to run.
-
Run the following command to install the project's front-end dependencies:
npm install
This will install all the required packages and dependencies that the project needs to run.
-
Ensure that MySQL is running on your machine.
-
Create a new MySQL database for the project.
-
Copy the
.env.example
file to a new file called.env
, and set theDB_DATABASE
,DB_USERNAME
, andDB_PASSWORD
variables to the appropriate values for your MySQL database. -
Run the following command to migrate the database:
php artisan migrate
This will create the required tables in the database.
-
(Optional) Seed test data
php artisan db:seed
- Run the following command to create a new user account for Filament PHP:
php artisan make:filament-user
This will prompt you to enter a name, email address, and password for the new user account.
-
Run the following command to start the development server:
php artisan serve
This will start the development server on
http://localhost:8000
. -
Navigate to
http://localhost:8000/admin/login
to log in to the Filament PHP admin interface.
-
Run the following command to start the application:
npm run dev
This will start the application in development mode, which includes live reloading.
-
Once the application has started, open a web browser and navigate to
http://localhost:8000
to view the application.