This is a project built using Laravel, a modern PHP framework designed for building scalable and efficient web applications.
Ensure your system meets the following prerequisites before starting:
- PHP 8.3 or higher
- Composer (PHP package manager)
- Node.js and npm (JavaScript package manager)
- SQLite database server (default database), mongodb
Follow these steps to set up the project:
-
Clone this repository:
git clone https://github.com/laraveltoiot/open-iot-cloud-laravel.git cd <project-name>
-
Install all PHP dependencies:
composer install
-
Install all JavaScript packages:
npm install
-
Copy the
.env
file:cp .env.example .env
-
Generate the application key:
bash php artisan key:generate
-
NPM build:
npm build ```
-
Run database migrations and (if needed) seed the database:
php artisan migrate php artisan migrate --seed
Run the application:
-
Start the application:
php artisan serve
-
Open your browser and visit: http://127.0.0.1:8000.
Compile the frontend assets:
-
Start the development watcher for frontend:
npm run dev
-
Or build for production:
npm run build