Spaces:
Running
Running
Download docker/mongodb/init/init.js from apitest-dev/erp-test-suite: direct link, hf CLI and curl.
- Browser
- Download file 320 Bytes
-
https://huggingface.co/spaces/apitest-dev/erp-test-suite/resolve/main/docker/mongodb/init/init.js
- Command line
-
hf download hf://spaces/apitest-dev/erp-test-suite/docker/mongodb/init/init.js
-
curl -L -o init.js https://huggingface.co/spaces/apitest-dev/erp-test-suite/resolve/main/docker/mongodb/init/init.js
320 Bytes
| db = db.getSiblingDB('erp_datasource'); | |
| db.createUser({ | |
| user: 'erpuser', | |
| pwd: 'erppass', | |
| roles: [ | |
| { | |
| role: 'readWrite', | |
| db: 'erp_datasource' | |
| } | |
| ] | |
| }); | |
| db.createCollection('products'); | |
| db.createCollection('orders'); | |
| db.createCollection('customers'); | |
| print('MongoDB initialization completed'); | |