This is a web view project to see how a dress looks on a model.
- Node.js
- NPM
- VS Code or any other editor
- Git (optional) - only if you want to contribute to the project
- Clone the repository
- Open the project in VS Code or any other editor
- Run
npm install
to install all the dependencies - Run
npm start
to start the project - Open
http://localhost:3000
in your browser - Enjoy!
public
- contains the static filesindex.html
- the main html file, the entry point of the application. This is hit when we navigate tohttp://localhost:3000
app.js
- the main application file that contains javascript code to render the models and dresses. You can read more about it heremodels
- contains the 3d models that we want to render
index.js
- the main file that contains the server code- js code has to run on a server, so we are using
express
to run the server - if we don't use a server that serves over http or https we get errors that it cannot load the resources and code doesn't work
- js code has to run on a server, so we are using
package.json
- contains the project information and dependencieswebpack.config.js
- contains the webpack configuration- webpack is a module bundler, it bundles all the js, html, css and any other required files into one file so that it can be served to the browser