-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e64294f
Showing
31 changed files
with
121,438 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')); } | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.