svelte-crow-fullstack Svelte Themes

Svelte Crow Fullstack

A clean Svelte + Crow fullstack starter โ€” fast, lightweight, and easy to extend. Comes with a smooth frontend + high-performance C++ backend setup so you can jump straight into building cool stuff without the boilerplate.

๐ŸŒ Fullstack Svelte + Crow C++ Template

A fullstack starter template featuring:

  • โšก Svelte (frontend with Vite)
  • ๐Ÿฆ… Crow (backend in C++)
  • ๐Ÿ˜ PostgreSQL integration with libpq
  • ๐Ÿ“ฆ Simple environment-based configuration
  • ๐Ÿ› ๏ธ Minimal, fast, and scalable fullstack setup

๐Ÿ“ Project Structure

fullstack-template/
โ”œโ”€โ”€ client/ # Svelte frontend
โ”œโ”€โ”€ server/ # Crow backend (C++)
โ””โ”€โ”€ README.md

๐Ÿš€ Setup Guide

๐Ÿ“ฆ Prerequisites


๐Ÿ”ง 1. Clone the Repository

git clone https://github.com/yourusername/fullstack-template.git
cd fullstack-template

๐ŸŒ 2. Frontend Setup (Svelte)

cd client
npm install
npm run dev

This will run the frontend at: http://localhost:5173


๐Ÿ–ฅ๏ธ 3. Backend Setup (Crow + PostgreSQL)

cd ../server
mkdir build && cd build
cmake ..
cmake --build .
./crow-template

The backend will run at: http://localhost:2000


๐Ÿ” 4. Create .env file inside server/

PG_HOST=localhost
PG_PORT=5432
PG_DB=kanbique
PG_USER=postgres
PG_PASSWORD=yourpassword

๐Ÿงช Test the Backend API

curl http://localhost:2000/api/hello

Expected output:

{ "message": "Hello from Crow!" }


๐Ÿ“ฆ Production Build

Build Frontend

cd client
npm run build

Build Backend (Release mode)

cd ../server/build
cmake --build . --config Release

You can configure Crow to serve the frontend static files from client/dist.


๐Ÿ™Œ Acknowledgements

Top categories

Loading Svelte Themes