-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added instructions to run the project. #4
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,6 @@ npm-debug.log | |
*.png | ||
.env | ||
.DS_Store | ||
package-lock.json | ||
.gitignore | ||
package.json | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. also, package.json and it's lock are good to be present, not gitignored |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,45 @@ | |
|
||
A simple example showing how to setup a 3d scene across windows on the same origin using three.js and localStorage. Code should be self explanatory | ||
|
||
follow me on twitter at [@_nonfigurativ_](https://twitter.com/_nonfigurativ_) for more stuff like this | ||
follow me on twitter at [@_nonfigurativ_](https://twitter.com/_nonfigurativ_) for more stuff like this | ||
|
||
|
||
|
||
## HOW TO RUN THE PROJECT | ||
|
||
#### 1) Install http-server globaly: | ||
------------- | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
`sudo npm install http-server -g` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or use npx? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why not just use python |
||
|
||
|
||
#### 2) Navigate to the project directory: | ||
------------- | ||
|
||
`cd multipleWindow3dScene` | ||
|
||
|
||
#### 3) Start the local server: | ||
------------- | ||
|
||
`http-server` | ||
|
||
|
||
#### 4) Open the project in your browser: | ||
------------- | ||
|
||
``` | ||
Starting up http-server, serving ./ | ||
Available on: | ||
http://127.0.0.1:8080 | ||
http://10.0.0.227:8080 | ||
http://169.254.109.130:8080 | ||
Hit CTRL-C to stop the server | ||
``` | ||
|
||
#### Online Preview | ||
|
||
You can view the online preview from [this link](https://bgstaal.github.io/multipleWindow3dScene/): | ||
|
||
https://bgstaal.github.io/multipleWindow3dScene/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why's gitignore in the gitignore?