Coder Social home page Coder Social logo

mykb's Introduction

MYKB

A file system/markdown based knowledge base editor/viewer

Demo

You can try the demo at: https://mykb.jjsweb.site

- Login
email: admin
password: secretpass

P.S. the demo is reset every 10 minutes

About

MYKB is a file system/markdown based knowledge base editor/viewer built with Next.js

Current features:

  • live preview when editing a doc
  • live file system watching
  • caching of docs to speed up searching/viewing of docs
  • offline viewing of cached docs (requires browser that supports service workers)
  • automatic git versioning
  • automatic trusting of Cloudflare reverse proxies

Installing

  • With Docker

    docker run --name mykb -v /path/to/docs:/kb -v /path/to/config:/config --env "PUID=USER_ID" --env "PGID=GROUP_ID" -p 3000:3000 ijjk/mykb:latest
    
  • With yarn (or npm)

    1. Clone repo
      git clone https://github.com/ijjk/mykb
      
    2. Install dependencies
      cd path/to/mykb; yarn
      
    3. Build it
      yarn build && NODE_ENV=production node ./bin/genSecret.js
      
    4. Start it
      yarn start
      

Options

production.json (overrides default.json with production NODE_ENV var)

Name Description
useGit Whether or not to use a git repo to automatically version changes to docs (requires git to be installed)
docsDir The directory where the markdown docs are located
cacheSize Max size of docs to store in memory for faster searching (default 10MB)
trustCloudflare Whether to trust X-Forwarded-For header from Cloudflare IPs (used for rate limiting)

trustIPs.json - An array of proxy-addr compatible addresses to trust the X-Forwarded-For header from (Only needed if behind reverse proxy)

License

Copyright (c) 2017

Licensed under the MIT license.

mykb's People

Contributors

ijjk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.