Install the Flux-SDK using npm.
cd my-projectnpm install --save flux-sdk
Now all that's left is importing it into your project
import Flux from 'flux-sdk';const flux = new Flux();flux.connect("fluxprotocol-phase-point-two").then(() => {console.log("connected to:", flux);})
That's it! You're ready to create and interact with any markets on any asset or event.