This is a tutorial to set up an apeman apps server on Ubuntu os.
Apeman apps runs on node.js and use npm for package management.
```bash
$ sudo apt-get update $ sudo apt-get install -y python-software-properties python g++ make $ sudo add-apt-repository ppa:chris-lea/node.js $ sudo apt-get update $ sudo apt-get install nodejs $ sudo ln -s /usr/bin/nodejs /usr/bin/node # Link nodejs as node. ```
Note that node.js registered as "nodejs" in apt repo due to a name conflict. You need to create a symbolic link to the binary with name "node" for convenience.
For more detail, see wiki page of node
To run multiple apeman apps, a reverse proxy is needed. Nginx would be nice.
```bash
$ sudo apt-get install nginx ```
For more detail, see Install guide on nginx official page
Since apeman apps could be easily numerous, we recommend to create a linux user just for apeman.
```bash
$ useradd apeman-apps -m -s /bin/bash ```