Institut Teknologi Sumatera
Open Terminal and type
git clone [REPOSITORY_URL](https://github.com/RivaldiYN/smart-building.git)
In the terminal, type:
cd smart-building
code .
This will automatically open the project in Visual Studio Code/Code Editor.
Add the JSON file from Firebase. Copy the .env.example file. Paste the copied file and rename it to .env. Adjust the .env file:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=smartbuilding
DB_USERNAME=root
DB_PASSWORD=
FIREBASE_DATABASE_URL='${URL_FIREBASE}'
FIREBASE_CREDENTIALS='${FIREBASE_CREDENTIAL}'
- Install/Update Composer: "As a tip, make sure to read any errors that occur (usually some configuration is needed in php.ini, such as enabling extension=sodium by removing the ; (semicolon) before the text)."
composer install
- Generate a Key
php artisan key:generate
- Install Node Package Manager
npm install
Open two terminals:
In the first terminal, run:
php artisan serve
- In the second terminal, run:
npm run dev
Open the website at http://127.0.0.1:8000/
- Rivaldi Yonathan Nainggolan
- Yondika Vio Landa