Git Product home page Git Product logo

makehuman-js-example's Introduction

makehuman-js example ui

Example web app using makehuman-js

Live version at makehuman-js-example.wassname.com (NSFW while loading)

Install and run

Development environment

If you want to edit makehuman-js and makehuman-data as well you will want to set up a development environment with "npm link" and webpack --watch:

  • clone this repo, makehuman-js, and makehuman-data into three seperate folders: "makehuman-js-example", "makehuman-js" and "makehuman-data"
  • in the makehuman-data folder:
    • register makehuman-data using the command npm link. This way imports will use your local code (read more here).
  • in the makehuman-js folder:
    • run npm link
    • install dev dependancies with npm install --dev
    • open a seperate terminal, go to this folder, and run npm run watch. This will have webpack watch for changes to the source code (such as human.js) and if it sees any it will regerate makehuman.js. Leave this running while you develop.
    • If you get "webpack not found" or similar, while running the previous step you may also need to install webpack globally to make the command available in the terminal: npm install -g [email protected].
  • in the makehuman-js-example folder
    • install dependencies with npm install
    • run npm link makehuman-js and npm link makehuman-data
    • run npm start
  • open http://localhost:8080 in the browser

Now if you change a source file in makehuman-js you will see the change reflected in the web app, that means it's working.

Why do it this way? You could also refactor makehuman-js-example to be a webpack app which would simplify the development process but would complicate the example. I chose a simpler example.

makehuman-js-example's People

Contributors

wassname avatar yshshrm avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.