The repository for the Tophhie Cloud API web toolkit.

Remove readme

tophhie.cloud 31c1d2cc 223d25a2

verified
+62
+62
README.md
··· 1 + # api-toolkit 2 + 3 + A lightweight SvelteKit starter focused on building and testing API-driven UIs. Includes a small set of utilities and an example fetch helper to get you started quickly. 4 + 5 + **Quick Start** 6 + 7 + - **Install:** Run `npm install` (or `pnpm install` / `yarn`). 8 + - **Dev:** Start the dev server with `npm run dev` and open the app in the browser. 9 + - **Build:** Create a production build with `npm run build` and preview with `npm run preview`. 10 + 11 + ## What you'll find 12 + 13 + - Minimal SvelteKit app scaffold with routes under `src/routes`. 14 + - A small helper for API fetching at `src/lib/tcapifetch.ts` and component examples in `src/lib`. 15 + - Static assets served from `static/` and global styles in `src/app.css`. 16 + 17 + ## Development 18 + 19 + 1. Install dependencies: 20 + 21 + npm install 22 + 23 + 2. Start the development server: 24 + 25 + npm run dev 26 + 27 + 3. Open the app at the address shown in the terminal (usually http://localhost:5173). 28 + 29 + Tips: 30 + 31 + - Edit pages in `src/routes` to add views. 32 + - Add reusable components to `src/lib` and import them into routes. 33 + 34 + ## Build & Deployment 35 + 36 + - Build for production: `npm run build`. 37 + - Preview the production build locally: `npm run preview`. 38 + - For deployment, add the appropriate SvelteKit adapter for your target platform (Vercel, Netlify, Cloudflare, etc.). See the official SvelteKit docs for adapter setup. 39 + 40 + ## Project structure (key files) 41 + 42 + - `src/routes/` — App routes and pages. 43 + - `src/lib/` — Reusable components and helper utilities (e.g. `tcapifetch.ts`). 44 + - `src/app.css` — Global styles. 45 + - `static/` — Static assets served at the root of the site. 46 + - `svelte.config.js`, `vite.config.ts`, `tsconfig.json` — Project configuration. 47 + 48 + ## Contributing 49 + 50 + - Open an issue or submit a PR with improvements or fixes. 51 + - Keep changes focused and document new public utilities in the README or as inline docs. 52 + 53 + ## License 54 + 55 + Specify your project license here (e.g. MIT) or add a `LICENSE` file. 56 + 57 + --- 58 + 59 + If you'd like, I can: 60 + 61 + - run the dev server and confirm the app starts, or 62 + - add a short usage example showing how to use `src/lib/tcapifetch.ts` in a page.