How to run in windows - adel-software/democracyos GitHub Wiki
- Install node https://nodejs.org/en/download/
- check node version with command
node -v
current version is : v11.11.0
npm -v
current version is : 6.7.0
- Install mongodb sever mongodb
- Install compas a GUI for mongodb compass
- Install gulp :
npm install -g gulp
( global with param -g )
- check gulp version :
gulp -v
( gulp cmd folder %USERPROFILE%\AppData\Roaming\npm folder must be in path )
- git clone code from repository
- go to local code folder and open a cmd
- run in cmd from local code folder :
set NODE_PATH=.
- chec if NODE_PATH is correct :
echo %NODE_PATH%
- in local code folder edit package.json replace
"scripts": {
"preinstall": "bin/dos-ext-install",
"start": "NODE_PATH=. node index.js",
"build": "NODE_PATH=. gulp build",
"watch": "NODE_PATH=. gulp watch",
"clean": "NODE_PATH=. gulp clean",
"serve": "NODE_PATH=. gulp serve",
"migrate": "NODE_PATH=. bin/dos-migrate",
"heroku-postbuild": "NODE_PATH=. gulp build --minify",
"test": "NODE_PATH=. MONGO_URL=mongodb://localhost/DemocracyOS-test gulp test",
"snyk-protect": "snyk protect",
"prepublish": "npm run snyk-protect"
},
by
"scripts": {
"preinstall": "bin/dos-ext-install",
"start": "node index.js",
"build": "gulp build",
"watch": "gulp watch",
"clean": "gulp clean",
"serve": "gulp serve",
"migrate": "bin/dos-migrate",
"heroku-postbuild": "gulp build --minify",
"test": "MONGO_URL=mongodb://localhost/DemocracyOS-test gulp test",
"snyk-protect": "snyk protect",
"prepublish": "npm run snyk-protect"
},
- run in the cmd :
npm install
- run in the cmd :
npm run build
( i get issue with missing folder assets in all sub-folder from democracyos\public\lib
- run in the cmd :
npm run start
the server must work connect to http://localhost:3000