https://github.com/dolphinotaku/nodejs-distributedsys
Distributed Computer Systems
https://github.com/dolphinotaku/nodejs-distributedsys
Last synced: 3 months ago
JSON representation
Distributed Computer Systems
- Host: GitHub
- URL: https://github.com/dolphinotaku/nodejs-distributedsys
- Owner: dolphinotaku
- License: apache-2.0
- Created: 2017-10-05T19:09:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-01T08:32:54.000Z (about 7 years ago)
- Last Synced: 2025-01-13T15:26:26.061Z (5 months ago)
- Language: JavaScript
- Size: 444 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dcs-assignment
[](https://github.com/keithbox/nodejs-DistributedSys)
install node.js
after that
run the commands in cmd/terminal show as below
```
cd ${your project root folder}/
```
e.g. cd /Users/lwk/git/dcs-assignmentMake sure there is a file "package.json" in project root folder
install project dependencies
```
npm install
```run application
```
node ./app/main.js ${selfPort} ${anotherServerPort}
```
e.g.
```
#first server
node ./app/main.js 3000 13000
#second server
node ./app/main.js 13000 3000
```Open browser and access
http://localhost:38080/