IamSwap / livechat-backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project Setup

This README provides a step-by-step guide on how to install and setup project. Please follow the instructions below to get started.

Prerequisites

Before you begin, ensure that you have the following installed on your local development environment:

  1. PHP >= 8.1
  2. Composer

Installation

1. Clone the repository

Clone the project repository to your local machine & Navigate to the project directory:

cd project

2. Install PHP dependencies

Install PHP dependencies using Composer:

composer install

3. Set up environment variables

Create a new .env file using the example provided:

cp .env.example .env

Open the .env file and update the environment variables as required, such as your database credentials:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_database_user
DB_PASSWORD=your_database_password

4. Generate application key

Generate a new application key:

php artisan key:generate

5. Run database migrations and seeders

Migrate and seed the database:

php artisan migrate --seed

Running the Application

Start the Laravel development server:

php artisan serve

Visit http://127.0.0.1:8000 in your web browser to access the application.

Contributing

Please refer to the CONTRIBUTING.md file for guidelines on how to contribute to this project.

License

This project is licensed under the MIT License.

About


Languages

Language:PHP 97.3%Language:Dockerfile 2.4%Language:Shell 0.3%