import test/auth.postman_collection.json into postman
SYNC_TYPE=nextcloud node sync.js
git clone https://github.com/yrong/config ../config
ln -s ../config .
then config db servers as required,e.g:
...
"neo4j": {
"host": "localhost",
"port": 7687,
"user": "neo4j",
"password": "admin"
},
"elasticsearch":{
"host": "localhost",
"port": 9200,
"user":"elastic",
"password":"elastic",
"mode": "strict"
},
"redis": {
"host": "localhost",
"port": 6379
},
"ldap":{
"url": "ldap://localhost:389",
"bindType":"dn",
"bindDn": "cn=admin,dc=test,dc=com",
"bindCredentials": "admin",
"searchFilter": "(cn={{username}})",
"userSearchBase": "ou=users,dc=test,dc=com",
"departmentSearchBase": "dc=test,dc=com",
"userClass": "posixAccount",
"userAttributes":["dn","cn","uidNumber"],
"departmentClass":"posixGroup",
"departmentAttributes":["dn","cn","gidNumber"],
"reconnect": true
},
"nextcloud":{
"host":"http://localhost:8089/FileStore",
"adminuser":"admin",
"password":"admin",
"group":"share",
"permissions": 1,//1 = read; 2 = update; 4 = create; 8 = delete; 16 = share; 31 = all
"publicUpload": true //allow public upload or not
},
...
yarn install
//set envirionment variables required
set -a;source ../config/.env;source .env;set +a
//init schema required when first time started
npm run init
//start server
scirichon-crud-api
//run postman testcases with newman
node ../config/config/test/index.js
MIT