Crowi
Crowi - The Markdown Wiki - Empower the team with sharing your knowledge
Install / Use
/learn @crowi/CrowiREADME
[!CAUTION] Crowi v2 is currently under active development.
- There is no stable release available at this time
- Crowi v1.x is deprecated and no longer maintained
- Do not use this repository in production until v2 is officially released
Crowi is a Markdown Wiki like:
- Easy to edit and share,
- Markdown supported,
- Useful timeline list view,
- Fast.
Install
Install dependencies and build CSS and JavaScript:
$ pnpm install
More info is here.
Dependencies
- Node.js 22.x
- MongoDB 4.2.x
- Elasticsearch 6.x.x or 7.x.x (optional) (Doc is here)
- Redis (optional)
- Amazon S3 (optional)
- Google Project (optional)
- Slack App (optional)
Start Up on Local
Crowi is designed to be set up on Heroku or some PaaS, but you can also start up Crowi with ENV parameter on your local.
$ PASSWORD_SEED=somesecretstring MONGO_URI=mongodb://username:password@localhost/crowi node app.js
or please write .env.
Environment
PORT: Server port. default:3000.BASE_URL: Server base URL (e.g. https://demo.crowi.wiki/). If this env is not set, it is detected by accessing URL.NODE_ENV:productionORdevelopment.MONGO_URI: URI to connect to MongoDB. This parameter is also byMONGOHQ_URLORMONGOLAB_URI.REDIS_URL: URI to connect to Redis (used for session store and socket.io). This parameter is also byREDISTOGO_URL.- Use
rediss://scheme if you want to TLS connection to Redis. REDIS_REJECT_UNAUTHORIZED: Set "0" if you want to skip the verification of certificate.
- Use
ELASTICSEARCH_URI: URI to connect to Elasticearch.PASSWORD_SEED: A password seed used by password hash generator.SECRET_TOKEN: A secret key for verifying the integrity of signed cookies.FILE_UPLOAD:aws(default),local,none
Optional:
MATHJAX: If set1, enable MathJax feature.PLANTUML_URI: If set the url of PlantUML server, then enable PlantUML feature. e.g.http://localhost:18080.ENABLE_DNSCACHE: If settrue, Use internal DNS cache for crowi in Linux VMs. (See also: #407)
see: .env.sample
For develop
We can use docker-compose for develop without complicated settings.
$ docker-compose -f docker-compose.development.yml up
- Express restarts when a file changed
- Webpack compiled assets automatically
Troubleshooting
Please try the following commands.
# Stop containers
$ docker-compose -f docker-compose.development.yml stop
# Remove containers
$ docker-compose -f docker-compose.development.yml rm
# Remove images
$ docker-compose -f docker-compose.development.yml images -q | xargs docker rmi -f
# Build images
$ docker-compose -f docker-compose.development.yml build
License
- The MIT License (MIT)
- See LICENSE file.
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Writing Hookify Rules
99.2kThis skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
review-duplication
99.9kUse this skill during code reviews to proactively investigate the codebase for duplicated functionality, reinvented wheels, or failure to reuse existing project best practices and shared utilities.
