https://github.com/embium/vike-test
Testing Vike
https://github.com/embium/vike-test
Last synced: about 1 month ago
JSON representation
Testing Vike
- Host: GitHub
- URL: https://github.com/embium/vike-test
- Owner: embium
- Created: 2024-02-16T10:56:36.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-16T10:56:38.000Z (about 1 year ago)
- Last Synced: 2025-01-30T12:14:03.434Z (3 months ago)
- Language: TypeScript
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This app has been created with [Bati](https://batijs.github.io) using the following flags: `--react --daisyui --tailwindcss --trpc --express --prisma --eslint --prettier`
# Next steps
## *Prisma*
### Setup
Run the following command once:
```sh
pnpx prisma init
```then follow instructions at
# About this app
This app is ready to start. It's powered by [Vike](https://vike.dev) and [React](https://react.dev/learn).### `/pages/+config.h.ts`
Such files are [the interface](https://vike.dev/config) between Vike and your code. It defines:
- A default [`` component](https://vike.dev/Layout) (that wraps your [`` components](https://vike.dev/Page)).
- A default [`title`](https://vike.dev/head).
- Default [`` tags](https://vike.dev/head).### Routing
[Vike's built-in router](https://vike.dev/routing) lets you choose between:
- [Filesystem Routing](https://vike.dev/filesystem-routing) (the URL of a page is determined based on where its `+Page.jsx` file is located on the filesystem)
- [Route Strings](https://vike.dev/route-string)
- [Route Functions](https://vike.dev/route-function)### `/pages/_error/+Page.jsx`
The [error page](https://vike.dev/error-page) which is rendered when errors occur.### `/pages/+onPageTransitionStart.ts` and `/pages/+onPageTransitionEnd.ts`
The [`onPageTransitionStart()` hook](https://vike.dev/onPageTransitionStart), together with [`onPageTransitionEnd()`](https://vike.dev/onPageTransitionEnd), enables you to implement page transition animations.### SSR
SSR is enabled by default. You can [disable it](https://vike.dev/ssr) for all your pages or only for some pages.### HTML Streaming
You can enable/disable [HTML streaming](https://vike.dev/streaming) for all your pages, or only for some pages while still using it for others.