This method is recommended for most users as it handles all installation steps automatically.
Prerequisites
Before starting, ensure you have:- ✅ PHP 8.2+ installed
- ✅ Composer 2.x installed
- ✅ Node.js 18.x+ installed
- ✅ Git installed
Installation Steps
Clone the Repository
First, clone the NutriFit repository to your local machine:
Make sure you’re in the project directory before running the next command.
Run Automated Setup
Execute the one-command setup script:This command automatically performs the following operations:
- Installs PHP dependencies via Composer
- Creates
.envfile from.env.example - Generates application key (
APP_KEY) - Runs database migrations to create tables
- Installs Node.js dependencies via npm
- Compiles frontend assets for production
Seed the Database (Required)
Create the default admin user and initial data:This creates:
- Admin user with default credentials
- Sample roles and permissions
- Initial configuration data
The seeder is required to create the administrator account needed to access the system.
Configure Environment (Optional)
The See Configuration for detailed environment setup.
.env file has been created with default values suitable for local development. For basic usage, no changes are needed.However, you may want to customize:Start the Development Server
Launch all required services with one command:This starts three services in parallel:
Web Server
Laravel server running on
http://localhost:8000Queue Worker
Processes email notifications and background jobs
Vite Dev Server
Hot module replacement for instant CSS/JS updates
The terminal will show color-coded output from all three services. Press
Ctrl+C to stop all services.Access the Application
Open your browser and navigate to:You should see the NutriFit welcome page.
Default Admin Credentials
What Gets Installed
The automated setup configures:Backend Dependencies (composer.json)
Frontend Dependencies (package.json)
Verification
Verify your installation is complete:Troubleshooting
Port Already in Use
If port 8000 is already in use:Permission Errors
Ensure storage and cache directories are writable:Database Not Found
For SQLite, ensure the file exists:Node Modules Issues
If asset compilation fails:Next Steps
Configuration
Customize environment settings, database, and mail configuration
Getting Started
Learn about NutriFit features and core concepts