white-label-example
Introduction
This is the White label example application, which demonstrates how to use our server effectively. The application includes Dashboard, Designer, View, and Send Data pages to help you understand its functionalities and features.
Prerequisites
Make sure you have Node.js version 18.0.0 or higher installed on your system.
Configuration
Obtaining Credentials
- Obtain the private key and unique scope from ExpoFP.
- Download repository from https://github.com/expofp/white-label-example
- Download dependencies using the
npm install
command - Create a
.env
file in the root directory and add the following variables:PRIVATE_KEY=<private key>
SCOPE=<your unique scope>
Running the Application
- Run the server using the
npm start
command. - Access the application at
http://localhost:5000
and enter the username and password specified in the.env
file.
Live examples pages
Dashboard
The Dashboard provides an overview of the application. Visit the example on Heroku.
Designer
The Designer page allows you to design floor plans and integrate them into your services. Visit the example on Heroku.
View
The View page displays the floor plan and can be embedded on websites, apps, or kiosks. Visit the example on Amazon S3.
Send Data
The Send Data page serves as an example of an exhibitor data file. Visit the example on Heroku. Note that there's no need to add this as a separate page in your services.
Authentication
The signWithScopeSecret
function is used to create a signature for authentication with the service using a private key obtained from ExpoFP.
Read more at Creating a signature
Conclusion
With this documentation, you can effectively integrate our server into your projects and provide a seamless experience for your users.