KenPrz / HomeSphere

1 stars 0 forks source link

About HomeSphere

HomeSphere is a passion project and capstone project currently being developed by fourth-year students from Bicol University. It is a web-based home automation system built using Laravel. The system is planned to utilize devices designed with ESP32 microcontrollers that will utilize the system's API to send and receive data for controlling devices connected to the microcontrollers.

HomeSphere aims to provide a convenient and easy way to automate homes. It will allow users to control their lights, appliances, and other devices from anywhere in the world.

Features

Requirements 📒

Make sure to have the following installed first

Installation 🔧

Making the Database

xammp
MySQL

Clone the repository

git bash
Github Desktop

Initializing the Project

Make sure that you are inside the HomeSphere project Directory before issuing the following commands.

Install composer

composer i

Install NPM

npm i

Create a new env file

copy .env.example .env

Generate new app key

php artisan key:generate

Connecting to the database.

Inside the project directory after running the command copy .env.example .env a new env file will be created. Open the file and input your database credentials.

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homesphere
DB_USERNAME=[your_username] (usually root is the default)
DB_PASSWORD=[your db password]

Run the migrations

run the command inside the project file

php artisan migrate

Perform a storage link

php artisan storage:link

Serve the project

local machine serving

php artisan serve

local network serve

php artisan serve --host [your IP] --port 80

License

The Project is an open-source software licensed under the MIT license.