A modern web application for sending digital assets (Crypto, NFT, Access Tokens) via email using magic links.
sophon/
├── apps/
│ ├── frontend/ # Next.js frontend application
│ └── backend/ # Go backend application
├── packages/
│ ├── shared/ # Shared TypeScript utilities and types
│ └── config/ # Shared configuration files
- Bun (v1.0.26 or later)
- Go 1.22 or later
- SQLite3
-
Install dependencies:
bun install
-
Set up environment variables:
# Frontend (.env.local) NEXTPUBLIC_API_URL=http://localhost:8080 # Backend (.env) PORT=8080 DATABASE_URL=sophon.db
-
Start development servers:
bun turbo run dev
-
Build the project:
bun turbo run build
bun turbo run dev
- Start development serversbun turbo run build
- Build all applicationsbun turbo run lint
- Run lintingbun turbo run format
- Format codebun turbo run test
- Run tests
- Send digital assets (Crypto, NFT, Access Tokens) via email
- Magic link-based asset claiming
- Modern UI with Tailwind CSS and shadcn/ui
- Type-safe API communication
- SQLite database for data persistence
- Mock blockchain interactions for simplicity
- Frontend: http://localhost:3000
- Backend: http://localhost:8080
# Run all tests
bun turbo run test
# Run frontend tests
cd apps/frontend && bun test
# Run backend tests
cd apps/backend && go test ./...
MIT