1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-08-07 22:45:23 +02:00

update development docs and default config

This commit is contained in:
Nikita Melnikov 2022-10-02 17:26:27 +08:00
parent d8b03d387a
commit 35a0eea6af
2 changed files with 25 additions and 2 deletions

View file

@ -26,3 +26,26 @@ touch app-config.local.yaml
```shell
yarn dev
```
## Starting docs with MongoDB
### 1. Run MongoDB instance with docker-compose
```shell
docker-compose up mongodb
```
### 2. Setup MongoDB driver in app-config.local.yaml
```yaml
database:
driver: mongodb
mongodb:
uri: mongodb://localhost:27017/docs
```
### 3. Run the application
```shell
yarn dev
```

View file

@ -27,5 +27,5 @@ database:
driver: local # you can change database driver here. 'mongodb' or 'local'
local:
path: ./db
mongodb:
uri: mongodb://localhost:27017/docs1
# mongodb:
# uri: mongodb://localhost:27017/docs