Skip to content

zikojs/ziko-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

135 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ziko-server banner

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
  • ✅ Supports API

Project Structure

App ├──public/ ├── src/ ├── .ziko #generated ├── pages/ # required ├── index.js ├── components/ ├── layouts/ ├── contents/ ├── db/ ├── i18n/ ├── middlewares.js ├── tsconfig.json ├── ziko.config.js ├── 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

Releases

No releases published

Packages

 
 
 

Contributors