Skip to content

Commit b65149c

Browse files
committed
init
0 parents  commit b65149c

20 files changed

+96009
-0
lines changed

.env

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TIMES=2

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
bower_components/
2+
.npm
3+
*.log
4+
npm-debug.log*
5+
dist
6+
node_modules

.jshintrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"esversion": 6
3+
}

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# office-vr
2+
3+
_Office Desk Simulation application(webapp) is a VR application built using A-FRAME. It basically provided a Office Desk virtual reality experience to the user._
4+
5+
## What's ncluded
6+
7+
- [x] [Aframe](https://aframe.io)
8+
- [x] [Webpack 3](https://webpack.js.org)
9+
- [x] [ES6](http://es6-features.org)
10+
11+
### Install
12+
13+
```sh
14+
npm i webpack -g
15+
git clone [email protected]:Predhin/office-vr.git
16+
cd office-vr
17+
npm install
18+
npm run dev
19+
```
20+
21+
Then it will automatically open the application in your browser
22+
23+
For running from nodejs server(_This is utlized for building on heroku server_)
24+
25+
```sh
26+
npm start
27+
```

package.json

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"name": "office-vr",
3+
"version": "1.0.0",
4+
"description": "A vr simulator application",
5+
"main": "server.js",
6+
"engines": {
7+
"node": "6.2.0"
8+
},
9+
"scripts": {
10+
"clean": "rimraf dist/*",
11+
"prebuild": "npm run clean -s",
12+
"predev": "npm run clean -s",
13+
"build": "webpack --config webpack-prod.config.js --colors",
14+
"dev": "webpack-dev-server --open --config webpack-dev.config.js --watch --colors",
15+
"start": "npm-run-all build server",
16+
"server": "node server.js"
17+
},
18+
"repository": {
19+
"type": "git",
20+
"url": "git+https://github.com/predhin/VR_CaseStudy.git"
21+
},
22+
"author": "team tr cts kochi<teamtrctskochigmail.com@>",
23+
"license": "MIT",
24+
"bugs": {
25+
"url": "https://github.com/predhin/VR_CaseStudy/issues"
26+
},
27+
"eslintConfig": {
28+
"env": {
29+
"browser": true,
30+
"node": true
31+
},
32+
"parserOptions": {
33+
"ecmaVersion": 6,
34+
"sourceType": "module"
35+
},
36+
"rules": {
37+
"semi": 2
38+
}
39+
},
40+
"homepage": "https://github.com/predhin/VR_CaseStudy#readme",
41+
"devDependencies": {
42+
"babel-core": "^6.9.0",
43+
"babel-loader": "^7.1.2",
44+
"babel-preset-es2015": "^6.9.0",
45+
"copy-webpack-plugin": "^4.2.0",
46+
"css-loader": "^0.28.7",
47+
"eslint": "^4.6.1",
48+
"eslint-loader": "^1.3.0",
49+
"extract-text-webpack-plugin": "^3.0.0",
50+
"html-webpack-plugin": "^2.17.0",
51+
"node-sass": "^4.1.1",
52+
"npm-run-all": "^4.1.2",
53+
"rimraf": "^2.6.2",
54+
"sass-loader": "^6.0.6",
55+
"style-loader": "^0.18.2",
56+
"webpack": "^3.5.6",
57+
"webpack-dev-server": "^2.7.1"
58+
},
59+
"dependencies": {
60+
"aframe": "^0.7.1",
61+
"babel-polyfill": "^6.9.0"
62+
}
63+
}

server.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
'use strict';
2+
3+
const express = require('express');
4+
const app = express();
5+
const path = require('path');
6+
7+
app.set('port', (process.env.PORT || 5000));
8+
9+
app.use(express.static(path.join(__dirname, 'dist')));
10+
11+
app.listen(app.get('port'), () => {
12+
console.log(`App listening on port ${app.get('port')}`);
13+
});

src/assets/SimpleOffice_Texture.png

59.5 KB
Loading

src/assets/office.mtl

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Blender MTL File: 'None'
2+
# Material Count: 1
3+
4+
newmtl SimpleOfficeInteriors
5+
Ns 96.078431
6+
Ka 0.000000 0.000000 0.000000
7+
Kd 1.000000 1.000000 1.000000
8+
Ks 0.012549 0.012549 0.012549
9+
Ni 1.000000
10+
d 1.000000
11+
illum 2
12+
map_Kd SimpleOffice_Texture.png

0 commit comments

Comments
 (0)