Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MattyRad committed Feb 8, 2020
0 parents commit e64294f
Show file tree
Hide file tree
Showing 31 changed files with 121,438 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.DS_Store
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
14 changes: 14 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -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')); }
});
357 changes: 357 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e64294f

Please sign in to comment.