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
go mod tidyRun
go run ./main.goStash 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
- Open
/auth/registerand create an account. - Open
/auth/loginand sign in. - Open
/and confirm file manager renders. - Upload a file and verify it appears in
/files.