A scaffold project combining Mojolicious (Perl web framework) for the backend and Svelte for the frontend.
This template provides a minimal yet practical starting point for building modern full-stack web applications.
.
āāā backend/ # Mojolicious app (Perl)
ā āāā lib/ # Perl modules
ā āāā templates/ # Mojo templates
ā āāā public/ # Static files
ā āāā script/ # Application script
āāā frontend/ # Svelte application
āāā src/ # Svelte components
āāā public/ # Static assets
āāā package.json # Frontend dependencies
git clone https://github.com/marcoarthur/scafold-mojo-svelte.git
cd scafold-mojo-svelte
Make sure you have Perl 5.16+ and Carton installed.
cd backend
carton install
Run the backend server:
carton exec morbo script/app
Make sure you have Node.js (>=16) and npm installed.
cd frontend
npm install
npm run dev
This will start the Svelte development server (usually on http://localhost:5173
).
frontend/public/
or proxy API calls.npm run build
Copy build output to the Mojolicious public/
directory.
.env
files for environment-specific settings.backend/lib/MyApp.pm
.MIT License. See LICENSE for details.