|
| 1 | +# vite-tinybase-ts-react |
| 2 | + |
| 3 | +This is a [Vite](https://vitejs.dev/) template for a simple |
| 4 | +[TinyBase](https://tinybase.org/) app, using TypeScript and React, and also |
| 5 | +demonstrating the TinyBase ui-react-dom module UI components. |
| 6 | + |
| 7 | +<img width="847" alt="image" src="https://github.com/user-attachments/assets/cbc29a9f-7b26-4018-8359-e08706a31704"> |
| 8 | + |
| 9 | +## Instructions |
| 10 | + |
| 11 | +1. Make a copy of this template into a new directory: |
| 12 | + |
| 13 | +```sh |
| 14 | +npx tiged tinyplex/vite-tinybase-ts-react my-tinybase-app |
| 15 | +``` |
| 16 | + |
| 17 | +2. Go into the directory: |
| 18 | + |
| 19 | +```sh |
| 20 | +cd my-tinybase-app |
| 21 | +``` |
| 22 | + |
| 23 | +3. Install the dependencies: |
| 24 | + |
| 25 | +```sh |
| 26 | +npm install |
| 27 | +``` |
| 28 | + |
| 29 | +4. Run the application: |
| 30 | + |
| 31 | +```sh |
| 32 | +npm run dev |
| 33 | +``` |
| 34 | + |
| 35 | +5. Go the URL shown and enjoy! |
| 36 | + |
| 37 | +## Other templates |
| 38 | + |
| 39 | +There are ten templates for TinyBase, of which this is one: |
| 40 | + |
| 41 | +| | Template | Language | React | Plus | |
| 42 | +| --- | ---------------------------------------------------------------------------------------------- | ---------- | ----- | ------------------- | |
| 43 | +| | [vite-tinybase](https://github.com/tinyplex/vite-tinybase) | JavaScript | No | | |
| 44 | +| | [vite-tinybase-ts](https://github.com/tinyplex/vite-tinybase-ts) | TypeScript | No | | |
| 45 | +| | [vite-tinybase-react](https://github.com/tinyplex/vite-tinybase-react) | JavaScript | Yes | | |
| 46 | +| 👉 | [vite-tinybase-ts-react](https://github.com/tinyplex/vite-tinybase-ts-react) | TypeScript | Yes | | |
| 47 | +| | [vite-tinybase-ts-react-sync](https://github.com/tinyplex/vite-tinybase-ts-react-sync) | TypeScript | Yes | Synchronization | |
| 48 | +| | [vite-tinybase-ts-react-pglite](https://github.com/tinyplex/vite-tinybase-ts-react-pglite) | TypeScript | Yes | PGlite | |
| 49 | +| | [vite-tinybase-ts-react-crsqlite](https://github.com/tinyplex/vite-tinybase-ts-react-crsqlite) | TypeScript | Yes | CR-SQLite | |
| 50 | +| | [tinybase-ts-react-partykit](https://github.com/tinyplex/tinybase-ts-react-partykit) | TypeScript | Yes | PartyKit | |
| 51 | +| | [tinybase-ts-react-electricsql](https://github.com/tinyplex/tinybase-ts-react-electricsql) | TypeScript | Yes | ElectricSQL | |
| 52 | +| | [expo/examples/with-tinybase](https://github.com/expo/examples/tree/master/with-tinybase) | JavaScript | Yes | React Native & Expo | |
| 53 | + |
| 54 | +## License |
| 55 | + |
| 56 | +This template has no license, and so you can use it however you want! |
| 57 | +[TinyBase](https://github.com/tinyplex/tinybase/blob/main/LICENSE) and |
| 58 | +[Vite](https://github.com/vitejs/vite/blob/main/LICENSE) themselves are both MIT |
| 59 | +licensed. |
0 commit comments