This is a test assignment submission by Daniel Robert Aigbe. Please find the design documentation here here
- PHP >= 8.2
- Composer
- Laravel Framework >= 11
- MySQL or another supported database
- Node.js and npm (for frontend assets)
-
Clone the repository:
git clone https://github.com/DanielRobert1/html_analyzer.git cd html_analyzer
-
Install dependencies:
composer install npm install
-
Copy the
.env.example
file to.env
and update the environment variables:cp .env.example .env
-
Generate the application key:
php artisan key:generate
-
Set up the database:
- Create a database in your DBMS.
- Update the
.env
file with your database credentials.
-
Run migrations and seed the database (if applicable):
php artisan migrate --seed
-
Build frontend assets:
npm run dev
-
Start the development server:
php artisan serve
The application will be available at http://localhost:8000.
- Upload html file for analysis
Run the test suite:
php artisan test
-
Set up a production server with PHP, Composer, and a database.
-
Clone the repository and install dependencies:
composer install --optimize-autoloader --no-dev npm run build
-
Configure the environment variables in the
.env
file. -
Run migrations:
php artisan migrate --force
Contributions are welcome! Please fork this repository and submit a pull request.
This project is open-source and available under the MIT License.