杜郎俊赏 - dujun.io

开源实例之Capri

前言

Capri is a static site generator with a component-based workflow. Websites built with Capri ship zero KB of JavaScript to the browser by default. You can selectively add interactive islands that get hydrated when the page loads.

实例地址

http://capri.dujun.eu.org

实例配置

配置描述
系统Debian
开发环境服务端Node.js 16
服务器Nginx
程序Capri 5.2.3

实例部署

权限要求

  • 具有系统读写权限
  • 已安装 Node.js
  • 已安装 Nginx

安装程序

官网地址:https://capri.build
仓库地址:https://github.com/capri-js/capri

#创建项目
npm init capri web -- -e react

#生成静态文件
cd web
npm run build

实例体验

进入实例深度体验

后记

本实例仅供参考,不定期重置数据。

体验更多开源实例

标签: 开源实例 Node.js开源实例 运营开源实例 静态网站开源实例
日期:2023-07-12