Public
Like
GodinoMawabank
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v16View latest version
A modern fintech application that allows users to generate USD, GBP, and Nigerian accounts after completing the registration and KYC processes.
- User authentication (Sign Up, Login)
- KYC verification process
- Real-time document upload
- Real-time selfie capture
- Multi-currency account generation (USD, GBP, NGN)
- User dashboard
├── backend/
│ ├── database/
│ │ ├── migrations.ts # Schema definitions
│ │ ├── queries.ts # DB query functions
│ ├── routes/ # Route modules
│ │ ├── auth.ts # Authentication routes
│ │ ├── kyc.ts # KYC verification routes
│ │ ├── accounts.ts # Account generation routes
│ │ └── static.ts # Static file serving
│ └── index.ts # Main entry point
├── frontend/
│ ├── components/
│ │ ├── App.tsx
│ │ ├── auth/ # Authentication components
│ │ ├── kyc/ # KYC verification components
│ │ ├── accounts/ # Account management components
│ │ └── common/ # Shared UI components
│ ├── pages/
│ │ ├── Login.tsx
│ │ ├── Register.tsx
│ │ ├── KYC.tsx
│ │ ├── Dashboard.tsx
│ │ └── Accounts.tsx
│ ├── index.html # Main HTML template
│ └── index.tsx # Frontend JS entry point
└── shared/
├── types.ts # Shared type definitions
└── utils.ts # Shared utility functions
- Backend: Hono (TypeScript)
- Frontend: React with Tailwind CSS
- Database: SQLite
- Authentication: JWT
- File Storage: Val Town Blob Storage
- POST /api/auth/register - Register a new user
- POST /api/auth/login - Login a user
- GET /api/auth/me - Get current user info
- POST /api/kyc/submit - Submit KYC information
- POST /api/kyc/upload-document - Upload verification document
- POST /api/kyc/upload-selfie - Upload selfie
- GET /api/kyc/status - Get KYC verification status
- POST /api/accounts/generate - Generate new accounts
- GET /api/accounts - Get user's accounts
- GET /api/accounts/:id - Get specific account details
The application is hosted on Val Town. Visit the app to get started.