INACTIVE - http://mzl.la/ghe-archive - A prototype server for a shared graffiti XR application.
Перейти к файлу
Blair MacIntyre fe73b8713c
Merge pull request #3 from Mozilla-GitHub-Standards/master
Add Mozilla Code of Conduct
2019-03-30 23:29:32 +09:00
bin Use express to make a site skeleton. 2017-11-07 09:56:20 -08:00
db Start showing nearby paintings in A5 2017-11-15 10:30:11 -08:00
public Fix bug on hide/show UI 2017-12-11 05:13:24 +01:00
routes Better field checking on anchor creation. 2017-11-16 09:45:08 -08:00
views Now creating User records, logging out, and logging in again with the User.code. 2017-11-13 18:21:12 -08:00
.gitignore Implemented the painting save UI. Started a babel build for browsers without ES6 modules. 2017-11-15 15:56:03 -08:00
CODE_OF_CONDUCT.md Add Mozilla Code of Conduct file 2019-03-29 23:44:27 -07:00
LICENSE Initial commit 2017-11-07 09:49:43 -08:00
README.md Better field checking on anchor creation. 2017-11-16 09:45:08 -08:00
app.js Now searching contents by location. 2017-11-14 19:40:02 -08:00
package-lock.json Implemented the painting save UI. Started a babel build for browsers without ES6 modules. 2017-11-15 15:56:03 -08:00
package.json Implemented the painting save UI. Started a babel build for browsers without ES6 modules. 2017-11-15 15:56:03 -08:00
webpack.config.js Implemented the painting save UI. Started a babel build for browsers without ES6 modules. 2017-11-15 15:56:03 -08:00

README.md

Social graffiti prototype server

This repo contains an Express HTTPD that implements the bare bones API to host the social graffiti demo using WebXR.

While it may, at first glace, appear to be a production-ready anchor name service or a 3D content service, it is neither.

This is a prototype built quickly for a single demo.

Configuring a Glitch.com project

Create a new project, then open a terminal to that project and run:

cd /app/
rm -rf node_modules package.json public README.md server.js views
git init .
git remote add -t \* -f origin https://github.com/mozilla/social-graffiti.git
git checkout master
npm install
npm run-script build

Setting up on CentOS / Amazon Linux

sudo yum install -y gcc-c++ make git
curl --silent --location https://rpm.nodesource.com/setup_6.x | sudo bash -
sudo yum install -y nodejs
sudo npm install npm@latest -g
sudo mkdir /www
sudo chown ec2-user:ec2-user /www
cd /www
git clone https://github.com/mozilla/social-graffiti.git
cd social-graffiti
npm install
npm run-script build

Running

cd /www/social-graffiti
# export DEBUG=social-graffiti.*
npm start