To start a Database Siswa Project from GitHub, follow these steps:
-
Clone the GitHub repository
Clone the Laravel project from the GitHub repository using the following command in your terminal:
git clone https://github.com/wildanfh/database-siswa.git
-
Install dependencies
Navigate into the project folder in your terminal and run the following command to install the required dependencies:
composer install
This will install all the required packages and dependencies for the Laravel project.
- Set up environment variables
Copy the .env.example
file in the root of your project and rename it to .env
. Then, update the values in the .env
file according to your project requirements.
- Change value environment variables
open .env and search these variables and change the value like this
DB_DATABASE=database-siswa2
*
*
SESSION_DRIVER=database
and create database database-siswa2
in localhost/phpmyadmin
.
- Generate an application key
Run the following command to generate an application key for your Laravel project:
php artisan key:generate
This will generate a random key that Laravel will use to secure your application.
- Run migrations
If the Laravel project you cloned has a database, run migrations to create the required tables using the following command:
php artisan migrate
- Install npm dependencies
Navigate into the project folder in your terminal and run the following command to install the required dependencies:
npm install
- Start the server
Finally, start the Laravel development server and vite in another terminal by running the following command:
php artisan serve
npm run dev
This will start the server on the default port 8000. You can access the application by opening your web browser and navigating to http://localhost:8000
.