Test App
Follow these steps to run the project locally:
- Install PHP dependencies with Composer:
composer install- Install JavaScript dependencies:
npm install- Start the frontend build/watch (Vite):
npm run dev- Copy the example environment file and update it:
cp .env.example .env- Add your Pusher account credentials to the
.envfile (APP_ID, APP_KEY, APP_SECRET, and APP_CLUSTER or equivalent) so real-time events work.
- Run database migrations:
php artisan migrate- Seed the database (creates test user(s)):
php artisan db:seed- Serve the application locally:
php artisan serve- Login with the test account:
- Email:
[email protected] - Password:
password
- Open the wallet page in your browser:
http://127.0.0.1:8000/wallet
-
Now you can exercise and test the page.
-
To verify Pusher real-time functionality, run the queue worker locally in a separate terminal:
php artisan queue:workNotes:
- If you use a different host/port for
php artisan serve, update the URL accordingly. - Ensure queue driver is configured in
.env(e.g.,QUEUE_CONNECTION=database) and migrations for jobs are in place if using the database queue.