1.6 KiB
Setting up CIEF Exchange onto your local machine
Prerequisite:
📌:Pre-requisites
- NodeJS version 14
- Xampp
- Laravel
Setting up:
-
Clone GitLab into Visual Studio Code
-
Rename
.env.exampleto.env. If you're sentimental just make another copy and rename the copy. -
Open Terminal and run after installing Composer
composer install --ignore-platform-reqs -
Next is setting up your database. Naviagate to
.envand name CIEF Portal Database. Example:DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=exchange_db <------ Here DB_USERNAME=root DB_PASSWORD= -
Open Xampp, navigate to phpmyadmin then Create a new Database in phpmyadmin with the same name as the name you named it
-
Migrate the database to inherit all the tables from the cloned repository by using these command in the terminal:
php artisan migratephp artisan migrate:fresh --seed -
Once done you can check phpmyadmin if the database is properly migrated.
-
Next is setting up the frontend. Assuming you already have nodejs ver14(Specifically) installed, run this in the terminal
npm install -
Next we install gulp with this command
npm install -g gulp -
Now we build gulp with this command
gulp build -
You are all set to view this project/repository locally. To run them run these command in 2 seperate terminals
php artisan servenpm run watch OR npm run dev