This project is a full-stack web application built with Laravel 8 and React.js. It allows users to register with their full name, email, and role, and provides a user list view.
- User registration with full name, email, and role.
- Role options: Author, Editor, Subscriber, Administrator.
- Display a list of registered users.
- Backend: Laravel 8
- Frontend: React 17
- Styling: Tailwind CSS
- PHP 7.4 or higher
- Composer
- Node.js and npm
- MySQL
- Docker (optional, for using Laravel Sail)
-
Clone the repository:
git clone https://github.com/mdshoaib126/eastvantage-test.git cd eastvantage-test
-
Install PHP dependencies:
composer install
-
Copy the example environment file and configure it:
cp .env.example .env
- Update the
.env
file with your database credentials.
- Update the
-
Generate an application key:
php artisan key:generate
-
Run the database migrations:
php artisan migrate
-
Start the Laravel development server:
If using Laravel Sail (Docker):
./vendor/bin/sail up
Without Docker:
php artisan serve
-
Navigate to the
react-frontend
directory:cd react-frontend
-
Install JavaScript dependencies:
npm install
-
Start the React development server:
npm start
- User Registration: Access the form at
http://localhost:3000
to register a user. - User List: After registering, you will be redirected to the user list page at
http://localhost:3000/users
where you can view all registered users.