GithubHelp home page GithubHelp logo

filamentphp-tall-stack's Introduction

Cloning, Installing Dependencies, and Running the Project Locally

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.

Prerequisites

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.

Cloning the Project

  1. Open a terminal or command prompt window.

  2. Navigate to the directory where you want to store the cloned project.

  3. Run the following command to clone the project:

    git clone https://github.com/kogomatthew/filamentphp-tall-stack.git

Installing Dependencies

  1. Navigate to the root directory of the cloned project.

  2. 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.

  3. 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.

Migrating the Database

  1. Ensure that MySQL is running on your machine.

  2. Create a new MySQL database for the project.

  3. Copy the .env.example file to a new file called .env, and set the DB_DATABASE, DB_USERNAME, and DB_PASSWORD variables to the appropriate values for your MySQL database.

  4. Run the following command to migrate the database:

    php artisan migrate

    This will create the required tables in the database.

  5. (Optional) Seed test data

    php artisan db:seed

Running Filament PHP

  1. 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.

  1. Run the following command to start the development server:

    php artisan serve

    This will start the development server on http://localhost:8000.

  2. Navigate to http://localhost:8000/admin/login to log in to the Filament PHP admin interface.

Starting the Application

  1. Run the following command to start the application:

    npm run dev

    This will start the application in development mode, which includes live reloading.

  2. Once the application has started, open a web browser and navigate to http://localhost:8000 to view the application.

For more info

https://filamentphp.com/docs/2.x/admin/installation

filamentphp-tall-stack's People

Contributors

kogomatthew avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.