Skip to content

zakarialaoui10/ziko-server

Repository files navigation

Note

This project is part of the ZikoJS ecosystem.

Ziko-server

Server-side rendering for Zikojs with file-based routing and client-side hydration.

Features

  • ✅ Server Side Rendering
  • ✅ Client Side Hydration with no additional config
  • ✅ File Based Routing
  • ✅ Mdzjs Supports
  • ✅ Supports Dynamic Routes
  • ✅ Supports both Sync And Async rendering

Project Structure

ziko-ssr-app
   ├── src/
      ├── server.js
      ├── entry-server.js
      ├── entry-client.js
      ├── pages/
            ├── index.js 
   ├── index.html
   ├── package.json
    

Config

// server.js
import { createServer } from "ziko-server/server";
createServer()
// entry-server.js
import {defineServerEntry} from "ziko-server/entry-server";
export default defineServerEntry({
   pages : import.meta.glob("./pages/**/*{.js,.mdz}")
})
// entry-client.js
import {EntryClient} from "ziko-server/entry-client";
EntryClient({
  pages : import.meta.glob("./pages/**/*{.js,.mdz}")
})

⭐️ Show your support

If you appreciate the project, kindly demonstrate your support by giving it a star!

Star

License

This projet is licensed under the terms of MIT License

About

Building Server-Side Rendered Apps with ZikoJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published