Accompanies open-metaverse-pool and can serve as an example or a framework for your frontend.
- open-metaverse-pool
- Ubuntu 16.04.5 LTS
- nodejs (on Ubuntu 16.04.5 LTS, install
nodejs-legacy
) - git
- nginx
- Varnish HTTP Cache
Use git
to download this repo to a folder, then cd
to it:
git clone [email protected]:NotoriousPyro/open-metaverse-pool-www.git /Your/Destination/Folder
cd /Your/Destination/Folder
Change ApiUrl: '//example.net/'
in config/environment.js
to match your domain name, blank will use the current domain. Also don't forget to adjust other options.
Then use the following:
npm install -g [email protected]
npm install -g bower
npm install
bower install
Configure varnish using the example in /examples/varnish.vcl
and set the port to open-metaverse-pool API
Configure nginx using the example in /examples/nginx.conf
and serve content from /Your/Destination/Folder/dist
. Set the upstream port and IP to the varnish server.
Now just start varnish, nginx, and make sure your API is up. If you get errors, please check folder permissions, missing folders and other common problems PRIOR to raising an issue. Issues raised with no prior debugging will be closed.
To build the web application, use ./build.sh
after a fresh install or when you make a change.