TanNguyen01 / BookingOnline

0 stars 0 forks source link

Project BookingOnline Installation Guide for Laravel

System Requirements

Step 1: Clone the Repository

First, clone the repository from GitHub:

git clone https://github.com/TanNguyen01/BookingOnline.git
cd BookingOnline

Step 2: Install Composer Packages

Next, install the required packages via Composer:

composer install

Step 3: Install Node.js Packages

Install the necessary JavaScript packages:

npm install
# or if you use Yarn
yarn install

Step 4: Configure Environment

Copy the .env.example file to .env:

cp .env.example .env

Edit the .env file to configure the necessary settings (database, mail, etc.).

Step 5: Generate Application Key

Generate the application key:

php artisan key:generate

Step 6: Set Up Database

Run the migrate and seed commands to create and initialize the database:

php artisan migrate

php artisan db:seed

Step 7: Build Front-end Assets

Build the CSS and JavaScript files:

npm run dev
# or if you use Yarn
yarn dev

Step 8: Run the Application

Start the Laravel development server:

php artisan serve

The application will run at http://localhost:8000.

Step 9: Useful Commands

Good luck with your installation and enjoy working with the project!