Skip to content

CEREBROX-IT/evaluation-backend

Repository files navigation

Evaluation REST API

php Laravel mysql

Basic setup on your local device by following the step.

1. Clone the Repository:

  • 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

2. Tools and others:

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

3. Install Composer Dependencies:

  • 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

4. Create a Copy of the Environment File:

  • 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

5. Generate Application Key:

  • 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

6. Set Up Environment Configuration:

  • Open the .env file in a text editor and configure your environment variables, such as database connection settings, mail settings, etc.

7. Run Database Migrations:

  • 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

8. Serve the Application:

  • 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

php artisan migrate:refresh --seed

Releases

No releases published

Packages

No packages published