This project is an application for conducting assessments based on the Decision Support System using the COPRAS method. This application is built using the Laravel framework.
To clone this project, follow the steps below:
-
Open a terminal or command prompt.
-
Navigate to the directory where you want to save the project.
-
Run the following command to clone the repository:
git clone https://github.com/RanoLangari/SPK-COPRAS.git
-
After the cloning process is complete, navigate to the project directory:
cd coprass-app
Follow the steps below to run the project:
-
Copy the
.env.example
file to.env
and adjust the database and application configuration according to your needs:cp .env.example .env
-
Install all required dependencies using npm:
npm install
-
Install all required dependencies using composer:
composer install
-
Generate the application key:
php artisan key:generate
-
Run migrations to create the database structure:
php artisan migrate
-
(Optional) Run the seeder to populate the database with initial data:
php artisan db:seed
-
Run Vite using the command:
npm run dev
-
Run the Laravel development server using the command:
php artisan serve
-
Open your browser and access the application through the URL provided by the development server (usually http://localhost:8000).
-
If you are using Laragon as your development environment, you can follow these steps:
a. Ensure Laragon is installed and all services (Apache/Nginx, MySQL, PHP) are running.
b. Clone your project repository into the www
directory of Laragon using the command git clone https://github.com/RanoLangari/SPK-COPRAS.git
.
c. Open Laragon, right-click, select Terminal
, and run the command composer install
to install all necessary PHP dependencies and npm install
to install all necessary JavaScript dependencies.
d. Copy the .env.example
file to .env
and adjust the database and application configuration according to your needs. Be sure to set DB_CONNECTION
, DB_HOST
, DB_PORT
, DB_DATABASE
, DB_USERNAME
, and DB_PASSWORD
according to the MySQL settings in Laragon.
e. Open Laragon, right-click, and select Start All
to start the MySQL service.
f. Run the command php artisan key:generate
to generate the application key.
g. Run the command php artisan migrate
to execute migrations and create the database structure.
h. (Optional) Run the command php artisan db:seed
to populate the database with initial data.
i. Run the command npm run dev
to compile JavaScript and CSS assets.
j. Access the project through the browser with the URL provided by Laragon (usually http://your-project-name.test).