Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ijjk/mykb
A file system/markdown based knowledge base editor/viewer
https://github.com/ijjk/mykb
knowledgebase markdown nextjs react react-hooks
Last synced: 24 days ago
JSON representation
A file system/markdown based knowledge base editor/viewer
- Host: GitHub
- URL: https://github.com/ijjk/mykb
- Owner: ijjk
- License: mit
- Created: 2018-05-17T05:05:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-22T08:56:11.000Z (almost 2 years ago)
- Last Synced: 2024-10-04T13:17:28.506Z (about 1 month ago)
- Topics: knowledgebase, markdown, nextjs, react, react-hooks
- Language: JavaScript
- Size: 2.5 MB
- Stars: 22
- Watchers: 3
- Forks: 6
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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: secretpassP.S. the demo is reset every 10 minutes
## About
MYKB is a file system/markdown based knowledge base editor/viewer built with [Next.js](https://github.com/zeit/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](https://www.npmjs.com/package/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](LICENSE).