Sample Trader Desktop application built with React and the Lightning Design System.
Check out this video for a quick walkthrough:
The back-end is built with Node.js and Socket.io.
The application is hosted live here: http://lightning-trader.herokuapp.com
Follow the steps below to deploy your own instance:
-
Make sure you are logged in to the Heroku Dashboard. You can quickly create a free account if you don't have one.
-
Click the Button below to deploy the application on Heroku.
Your own instance of the application is automatically deployed.
Follow the instructions below if you prefer to install the application on your local machine:
-
Clone this repository or download and unzip this zip file.
-
Navigate to the lightning-trader directory and install the project dependencies:
npm install
-
Type the following command to build the client application:
npm run build-client
The project is written using ECMAScript 6 including ECMAScript 6 modules.
-
Type the following command to start the server:
npm start
-
Open a browser and access http://localhost:3000
By default the application uses a mock feed simulated at the client-side. To use the actual Socket.io feed:
-
Open js/app.js
-
Comment out the module import for the mock client-side feed:
// import * as feed from './services/feed-mock';
-
Uncomment the module import for the real socket.io feed:
import * as feed from './services/feed-socketio';
-
Rebuild the client:
npm run build-client