2.0.0 • Published 8 years ago

focus-demo-app v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Focus demo application

Purpose

This application sets to music FOCUS libraries and components.

image

image

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