focus-demo-app
v2.0.0
Published
Focus demonstration application
Downloads
36
Readme
Focus demo application
Purpose
This application sets to music FOCUS libraries and components.
How to install it ?
Clone or download project code sources.
Install package dependencies :
npm i
How to launch it ?
You don't have your own server API, you can use our mock API by launching this command:
node api
The mock API serve fake datas at this URL : http://localhost:9999/
.
The section below explain how to plug your own API.
To launch webapp server :
npm start
Open you browser and access to this URL : http://localhost:3000/
How to plug my own backend API ?
Edit config.webpack.js
file and replace API_ROOT
var by root your root API URL in this section :
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.DefinePlugin({
API_ROOT: '"http://localhost:9999"'
})
],
API format
API must respect those rules : https://gist.github.com/pierr/86159b709242ea96c71c