This doc describes how to bootstrap and run the project locally.
git clone https://github.com/codex-team/codex.docs
yarn install
touch docs-config.local.yaml
yarn dev
By default, the application uses a local database powered by nedb. In order to use MongoDB, follow these steps:
docker-compose -f docker-compose.dev.yml up mongodb
database:
driver: mongodb
mongodb:
uri: mongodb://localhost:27017/docs
yarn dev
There is small CLI tool to convert local database to MongoDB in bin/db-converter. Check it out for more details.
Run it with
node bin/db-converter --db-path=./db --mongodb-uri=mongodb://localhost:27017/docs
Uploads driver is used to store files uploaded by users. By default, the application uses local filesystem to store files, but S3 driver is also available.
Create a S3 bucket and get access key and secret key (or use existing ones)
uploads:
driver: "s3"
s3:
bucket: example.codex.so
region: "eu-central-1"
baseUrl: "http://example.codex.so.s3-website.eu-central-1.amazonaws.com"
keyPrefix: "docs-test"
accessKeyId: "<secret>"
secretAccessKey: "<secret>
yarn dev