A sample client application demonstrating basic Reach Engine concepts.
After you have cloned this repo, please set up the application by running:
npm install
Once all the packages are installed you can run the application using this command
npm start
The default port is set to 3000, so you can access the app at this url
http://localhost:3000
To login to the Hello Reach Engine App you will need the Reach Engine server URL and the username and password to authenticate with the server
The Reach Engine URL needs to include http://
Example
http://1.0.0.0:8080
For a full list of Reach Engine APIs see our API documentation. http://docs.reachengineapi.apiary.io/
Take a look at this file:
src/components/Loginform/index.js
Find this method in the file: onLoginFormSubmit(e)
The method is using the POST method to this URL:
${reachEngineUrl}/reachengine/api/security/users/login
Take a look at this file: src/components/Search/index.js
Find this method in the file: search()
Take a look at this file:
src/components/app/search/index.js
Find this method: getThumbs()
The Hello Reach Engine App has been tested with the following:
npm v2.15.1
node v4.4.4
gcc 4.8