Starting with: Orchestrate.io
Use apt-get
:
sudo apt-get install nodejs
node server/index.js
or use nodemon
in place of node
, which auto restarts server when source codes changes (recommended).
There is no need to use apache or nginx web server for now, the node built-in web server is pretty stable and performant.
To install nodemon:
sudo npm -g install nodemon
We are currently using the Mocha test framework until a team decision is made to use something else.
Tests are located in server/test
.
To run tests, use command:
npm test
By default, any EC2 instance server has restricted exposure of ports, so you cannot access from internet out of the box.
To open web port: http://stackoverflow.com/questions/5004159/opening-port-80-ec2-amazon-web-services/10454688#10454688
Login:
ssh -i wfe.pem [email protected]
You could use Putty on Windows instead of ssh
.
The pem key for this particular test EC2 was sent via email (generated within Wei's personal AWS account). To use our UW account, generate key from that account.
Online access (testing only, EC2 from Wei's account): http://ec2-52-32-38-91.us-west-2.compute.amazonaws.com:5000/
Fix Ubuntu nodemon "cannot find node" issue: The reason is that node is called nodejs on Ubuntu, just do this to fix:
sudo ln -s /usr/bin/nodejs /usr/local/bin/node
To keep server from exiting when you exit your terminal, use this trick:
Use a nohup
prefix to keep it running in the background:
http://www.cyberciti.biz/tips/nohup-execute-commands-after-you-exit-from-a-shell-prompt.html
- move to UW domain
- show controlled access to s3 objects (download/view files)
- User auth
- File access control
- Role management
- Files searching
- Video/Audio playing
- 2-FA
- Annotation collaboration
- study has sub-studies
- permission, per person/group, per study
- per study, a set of media files
- data: research papers, transcripts, video, audio, picture
- oceangraphers: sensors under sea (see COVE ocean UW project)
More on dev ideas moved to dev.md
- To control access fo S3 objects, we could use the same logic to control access to password data