Sample Application
The CoCoCo Sample Customer Portal is a practical demonstration of how to integrate with our API to extend the platform's capabilities. Developers can use this application as a reference to understand secure API interactions and data handling tailored to specific business needs.
You can find all of the source code at:}
https://github.com/wearecococo/sample-customer-portal
This is released under an MIT license, ready for your own projects! Please check the licences of the open-source libraries used however to ensure compliance for anything you build!
Key Features:
Authentication: The application demonstrates secure user authentication mechanisms, ensuring that API calls are made safely and data is protected.
Data Retrieval and Display: It includes examples of fetching data from the API and presenting it in a user-friendly interface, showcasing how to handle and display information effectively.
Custom Functionality: The sample app illustrates how to implement custom features by leveraging API endpoints, enabling developers to build solutions that align with unique business objectives.
Getting Started
Clone the Repository:
bashgit clone https://github.com/wearecococo/sample-customer-portal.git cd sample-customer-portalInstall Dependencies:
bashnpm installConfigure Environment Variables: Create a
.envfile in the root directory and add your API credentials:API_KEY=your_api_key_here API_SECRET=your_api_secret_hereRun the Application:
bashnpm start
For detailed information on available API endpoints and their usage, refer to our official documentation on this site docs.wearecococo.com
Ideas
- Use this as the basis of constructing a portal where a customer can submit requests for quotes.
- Change this to use the
UserAPI instead of theCustomerAPI and build a tool for staff to see the state of production. - Use the
DeviceandDeviceStatusAPI to build custom dashboards in combination withCoConnect, our on-premise device monitoring solution (included in your account!).