ziko-server
Version:
server side rendering in zikojs with file-based-routing and client side hydration
64 lines (51 loc) • 1.8 kB
Markdown
> [!NOTE]
> This project is part of the [ZikoJS](https://github.com/zakarialaoui10/ziko.js) ecosystem.
Server-side rendering for Zikojs with file-based routing and client-side hydration.
<!-- Provides server-side rendering with file-based routing for ZikoJS, ***featuring zero configuration client-side hydration.*** -->
- ✅ Server Side Rendering
- ✅ Client Side Hydration with no additional config
- ✅ File Based Routing
- ✅ Mdzjs Supports
- ✅ Supports Dynamic Routes
- ✅ Supports both Sync And Async rendering
```
ziko-ssr-app
├── src/
├── server.js
├── entry-server.js
├── entry-client.js
├── pages/
├── index.js
├── index.html
├── package.json
```
```js
// server.js
import { createServer } from "ziko-server/server";
createServer()
```
```js
// entry-server.js
import {defineServerEntry} from "ziko-server/entry-server";
export default defineServerEntry({
pages : import.meta.glob("./pages/**/*{.js,.mdz}")
})
```
```js
// entry-client.js
import {EntryClient} from "ziko-server/entry-client";
EntryClient({
pages : import.meta.glob("./pages/**/*{.js,.mdz}")
})
```
If you appreciate the project, kindly demonstrate your support by giving it a star!<br>
[](https://github.com/zakarialaoui10/ziko-server)
<!--
This projet is licensed under the terms of MIT License
<img src="https://img.shields.io/github/license/zakarialaoui10/ziko-server?color=rgb%2820%2C21%2C169%29" width="100" align="right">