Git Product home page Git Product logo

td5's Introduction

Tiddlywiki-NodeJS-Github-Template

Knowledge base Template, with advanced filter search and faceted data aggregation.

wiki.onetwo.ren is an example of this template. And tiddlywiki-nodejs-github-template.now.sh is deployed example of this repo.

This repo contains the wiki backup data and script to start a local wiki server on MacOS on start up.

The wiki is minimized using modern web dev-tool, and accompany with a service worker to make it a PWA.

Setup

用TiddlyWiki替代Notion和EverNote作为个人知识管理系统 (Chinese)

English translation comeout soon.

Deployed to Now.sh

Procedure to deploy: 使用 Now.sh 部署 TiddlyWiki (Chinese)

Configs

In package.json there is port for local server to listen, and name for the tiddlywiki data folder name.

In now.json there is config for deployment, see zeit.co for detail.

NPM Scripts

npm run install:wikiServer: install service that will start a local wiki server on MacOS on start up. And it will start the localhost server immediately

npm run install:privateRepo: create soft link to ../private-MyTiddlyWiki, so tiddlywiki will load tiddlers and images in that private repo

npm run uninstall:wikiServer: uninstall start up script, and shut down the server immediately

npm run install:windows:wikiServer npm run install:privateRepo npm run uninstall:windows:wikiServer are Windows version of above commands

npm run start:wikiServer: start local tiddlywiki server.

npm build and npm run build:nodejs2html: pack tiddlywiki data to a HTML file

npm run build:public: copy things from ./PublicWiki/public to /public, so they can be served by a static server

npm run build:sitemap: generate sitemap point to wiki.onetwo.ren

npm run build:precache: use workbox to modify /public/service-worker.js to precache things under /public

npm run build:minifyHTML: use terser and other things to reduce bundle size

npm run build:prepare npm run build:clean: delete generated folders

Shell Scripts

scripts/commit.sh will commit things to local git

scripts/sync.sh will sync text to Github, automatically merge and resolve dirty things

Debug

If your wiki not started, and error log under /Library/Logs/TiddlyWiki shows a permission error: coreybutler/node-mac/issues/28

Credit

Scripts are inspired by DiamondYuan/wiki

td5's People

Contributors

hexf00 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.