Installation
Last updated
Was this helpful?
Last updated
Was this helpful?
create-melody-app
The easiest way to get up and running is by using create-melody-app. It provides a basic setup, including a working Webpack and Babel configuration. To get started, just run the following command in your terminal:
Afterwards, a new directory called myapp
has been created for you and you can use npm install
and npm start
or yarn
and yarn start
to get started with your application.
We recommend to also install the melody-hooks
package for an improved developer experience when using Melody.
Melody is made up of many different packages, which you'll need to install yourself if you intend to install it manually.
The above will install most of the required packages, except for the older melody-component
, melody-hoc
and melody-redux
packages which you might not want to use.
Please note that you'll also need and . We'll look at how to configure them in the next section.
The Melody compiler simply generates modern ES6 code which is likely not what you need. Therefore, it is most commonly bundled together with Babel to produce valid ES5 code.
Additionally, Melody requires you to declare which compilation target should be produced for the templates, either the idom
or the jsx
target are suitable options.