Logo
Getting Started
Overview

Getting Started

Run Stash locally with Gin, SQLite, and Snare auth routes.

1 min read
Install Gin SQLite

Prerequisites

  • Go installed and available in PATH
  • Writable location for ./app.db
  • Writable storage directory at /home/public (or code change to another path)

Install Dependencies

Terminal window
go mod tidy

Run

Terminal window
go run ./main.go

Stash starts on :8080.

Development Notice

Stash is under active development. Setup details may change as the project evolves.

What Happens on Startup

  • Opens SQLite DB at ./app.db
  • Runs snare/database.Migrate
  • Runs snare/database.Seed
  • Registers Snare routes (/auth/*, /api/auth/*)
  • Registers Stash routes (/, /files, /upload, /download/:filename, /delete/:filename)

First Verification

  1. Open /auth/register and create an account.
  2. Open /auth/login and sign in.
  3. Open / and confirm file manager renders.
  4. Upload a file and verify it appears in /files.