This project is part of SvelteKit 5 Training provided by API PLUS TECH Co., Ltd. It serves as a pre-internship submission
project-name/
āāā src/
ā āāā lib/ # Shared logic, components, stores
ā āāā routes/ # Pages and endpoints
ā āāā hooks.server.ts # Server hooks (e.g., for auth)
ā āāā app.d.ts # TypeScript types
āāā static/ # Public assets
āāā prisma/ # Prisma schema and migrations
āāā .env # Environment variable
āāā svelte.config.js # SvelteKit config
āāā tailwind.config.ts # Tailwind config
āāā ...
git clone https://github.com/Mysterioucz/Svelte5-TrainingKit.git
cd Svelte5-TrainingKit
npm install
Provide your credentials in .env (Stripe keys, Public server URL, Database URL): For Examples
DATABASE_URL="file:./dev.db"
PUBLIC_STRIPE_PUBLIC_KEY = Your Stripe Public Key
STRIPE_SECRET_KEY = Your Stripe Secret Key
PUBLIC_SERVER_URL = http://127.0.0.1:5173 # The URL of your server, used for webhooks and redirects.
npx prisma generate
npx prisma migrate dev
npm run dev
The app will be available at http://127.0.0.1:5173
(or the port SvelteKit uses).
User: admin
Password: password
Method | Endpoint | Description |
---|---|---|
POST | /api/payment | Handle Stripe payments |
POST | /login | User login |
GET | /dashboard | Protected user dashboard |
šØ Feel free to open an issue or contact me if you have any questions or feedback!