Skip to content
Permalink
Browse files
Initial commit
  • Loading branch information
MattyRad committed Feb 8, 2020
0 parents commit e64294f79a703bdd23b58d7490d385dfffc2638c
Showing 31 changed files with 121,438 additions and 0 deletions.
@@ -0,0 +1,2 @@
node_modules
.DS_Store
@@ -0,0 +1,18 @@
# Three.js boilerplate
This is a simple three.js boilerplate for new projects, feel free to contribute!

### Setup
Run the setup script to make the repository your own!

```bash
$ ./setup
```

Install dependencies and start your engines! This ships with a simple express.js server so we can run three.js properly without cross-origin issues.

```bash
$ npm install
$ npm run start
```

Open http://localhost:8080 to view your project.
@@ -0,0 +1,14 @@
var express = require('express'),
path = require('path'),
app = express();

app.set('port', (process.env.PORT || 8080));

app.use(express.static('public'));

app.listen(app.get('port'), function(err) {
if (err) {
console.log(err);
} else {
console.log('Running on port: ' + app.get('port')); }
});

Some generated files are not rendered by default. Learn more.

0 comments on commit e64294f

Please sign in to comment.