Installation
Loopar Framework can be installed using two methods: automatic installation with NPX or manual installation from the Git repository.Prerequisites
Check your Node.js version:Automatic Installation (Recommended)
The fastest way to get started with Loopar is usingnpx:
Run the installer
Execute the NPX command with your project name and optional port:Replace
project-name with your desired project name and 8080 with your preferred port (default is 3000).The
sudo prefix may be required depending on your system permissions.Wait for installation
The installer will:
- Download the Loopar Framework
- Install all dependencies
- Create the initial project structure
- Set up the dev environment
Server starts automatically
Your development server will start automatically after installation completes.
Manual Installation
For more control over the installation process, you can clone the repository manually.Clone from Git
Install dependencies
Loopar uses a monorepo structure with workspaces. You can use either pnpm (recommended) or yarn:
Installation Process Details
Preinstall Script
During installation, Loopar runs cleanup to ensure a fresh environment:bin/installer-clean.js
Dev Site Creation
After installation, theensure-site.js script automatically creates a development site:
bin/ensure-site.js
.env file contains:
.env
Verify Installation
Once installation is complete, verify everything is working:Access the application
Open your browser and navigate to:(or the port you specified during installation)
Available Scripts
After installation, these scripts are available:package.json
dev
Start development server with hot reloading
start
Start production server
stop
Stop all running processes
restart
Restart all processes
logs
View application logs
list
List all running processes
Troubleshooting
Port already in use
Port already in use
If you see a port conflict error:
- Stop the process using that port
- Change the port in
sites/dev/.env - Restart the server
Permission denied errors
Permission denied errors
If you encounter permission errors:
- Use
sudofor the NPX installation - Check file permissions in the project directory
- Ensure Node.js has proper access rights
Module not found errors
Module not found errors
If dependencies are missing:
Database connection errors
Database connection errors
If the setup wizard shows database errors:
- Verify database server is running
- Check connection credentials
- Ensure database user has proper permissions
- For development, SQLite requires no additional setup
Next Steps
Quick Start Guide
Now that Loopar is installed, follow the quick start guide to build your first application