- Open your terminal or command prompt and navigate to the directory where you want to store your Laravel project. Then, use the git clone command to clone the repository from GitHub.
# clone the repositoy
https://github.com/CEREBROX-IT/evaluation-backend.git
# navigate to the backend directory
cd evaluation-backend
- Make sure to have Mysql installed on your device and tool to have access to database like phpmyadmin.
- Make sure composer is installed. https://getcomposer.org
- Create Database name "evaluation-db" manually.
- Laravel uses Composer to manage its dependencies. Run the following command to install all the required dependencies specified in the composer.json file:
composer install
- Laravel requires an .env file for configuration. Make a copy of the .env.example file and rename it to .env. You can do this with the following command:
cp .env.example .env
- Run the following command to generate a unique application key for your Laravel application. (Add this on your .env file)
# generate application key
php artisan key:generate
- Open the .env file in a text editor and configure your environment variables, such as database connection settings, mail settings, etc.
- Run the database migrations to create the necessary tables:
php artisan migrate --path=database/migrations/2024_04_19_061114_create_session_table.php
php artisan migrate
- Finally, you can serve your Laravel application using the built-in PHP development server or any other web server you prefer. To use the PHP development server, run the following command:
php artisan serve
- Visit the endpoint below to check if laravel is Online http://127.0.0.1:8000/api/
php artisan migrate:refresh --seed