Installation
Prerequisites
Section titled “Prerequisites”Before installing Spry, make sure you have the following installed on your system:
- Deno: Spry runs on the Deno runtime (v1.30 or later)
- Database: SQLite or PostgreSQL
- SQLPage (optional): For building web applications
Installing Deno
Section titled “Installing Deno”Spry is built on Deno, a modern JavaScript/TypeScript runtime. Install it using the following command:
curl -fsSL https://deno.land/install.sh | shirm https://deno.land/install.ps1 | iexInstalling Spry
Section titled “Installing Spry”Initialize a new Spry project using the installation script. Choose your preferred database:
SQLite Setup
Section titled “SQLite Setup”Create a new Spry project with SQLite (default):
curl -fsSL https://sprymd.org/init.sh | sh -sThis creates a new Spry project in the current directory with SQLite configuration.
PostgreSQL Setup
Section titled “PostgreSQL Setup”Create a new Spry project with PostgreSQL:
curl -fsSL https://sprymd.org/init.sh | sh -s -- --dialect postgresCustom Directory
Section titled “Custom Directory”Specify a custom target directory:
curl -fsSL https://sprymd.org/init.sh | sh -s -- --target-dir myproject --dialect postgresProject Structure
Section titled “Project Structure”After initialization, your project will have the following structure:
myproject/├── Spryfile.md # Main executable markdown file├── spry.ts # Spry CLI├── sqlpage/│ ├── sqlpage.json # SQLPage configuration│ └── migrations/ # Database migrations└── dev-src.auto/ # Auto-generated SQLPage source filesVerify Installation
Section titled “Verify Installation”Test your Spry installation:
./spry.ts --versionYou should see the Spry version number printed to the console.