Quickstart
Get your development environment running quickly with this streamlined guide. For more detailed instructions, see the Installation guide.Prerequisites
Before starting, ensure you have:- PHP 8.2 or higher
- Composer
- Node.js 18+
- npm or pnpm (pnpm recommended)
- Git
Setup the Backend
Navigate to the Backend directory and install dependencies:
By default, Laravel uses SQLite for development. If you want to use MySQL or PostgreSQL, update your
.env file with the appropriate database credentials.Setup the Frontend
Open a new terminal, navigate to the Frontend directory, and install dependencies:Create a
.env.local file and configure the backend URL:Start the Development Servers
Option 1: Run Everything Together (Recommended)From the Backend directory:This single command runs in parallel:Option 2: Run ManuallyTerminal 1 - Backend:Terminal 2 - Frontend:
- Laravel server (
php artisan serve) - Queue worker (
php artisan queue:listen) - Next.js development server (
npm run dev)
This requires the
concurrently package, which is automatically installed with the backend dependencies.Access Your Application
Once the servers are running, you can access:
- Frontend: http://localhost:3000
- Backend API: http://localhost:8000/api
The first time you visit the frontend, you’ll see the authentication pages. You can register a new account to get started.
Verify Installation
To verify everything is working correctly:- Visit http://localhost:3000
- Click on “Register” to create a new account
- Fill out the registration form
- You should be redirected to the dashboard after successful registration
Quick Commands Reference
Backend Commands
Frontend Commands
Troubleshooting
Common Issues
Port already in use: If port 8000 or 3000 is already in use, you can specify a different port:.env are correct. For SQLite, ensure the database file exists:
Next Steps
Now that you have everything running:- Explore the Installation guide for detailed configuration options
- Learn about the authentication system
- Start building your application features
- Check out the Laravel Documentation and Next.js Documentation