Skip to content

philszalay/marcel-kohler-portfolio-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Three.js Boilerplate

Screenshot 2022-08-08 at 23 06 55

https://philszalay.github.io/threejs-boilerplate/

Setup

Download Node.js 16.

# Install dependencies (only the first time)
npm install

# Run the local server at localhost:8080
npm run dev

# Build for production in the dist/ directory
npm run build

Deployment

To deploy the app with gh-pages some prerequisites are necessary.

Install gh-pages

npm install gh-pages --save-dev

For more information see: https://www.npmjs.com/package/gh-pages

Adjustments

To load images and other assets after deploying some adjustments are necessary.

⋅ Change the homepage link (https://philszalay.github.io/threejs-boilerplate/) in your package.json to your gh-pages link.

⋅ In webpack.common.js change the output.publicPath property (/threejs-boilerplate/) to your path fragment for production mode.

Deployment Script

To deploy your changes use the predefined deploy script.

# Build for production in the `dist` directory and publish the folder's content to the `gh-pages` branch
npm run deploy

Running the script for the first time will do the initial setup automatically and your project will be published automatically. The gh-pages settings can be found in your repository settings (Settings -> Pages).

Formatting/Linting

Install https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint in your VS Code to use eslint for formatting and linting. A configuration file (.eslintrc.js) is already provided in the project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published