Skip to content

datacake/datacake-next13-apollo-app

Repository files navigation

Creating a Custom Application with DATACAKE API
This guide will walk you through the process of creating a custom application using the DATACAKE API. You’ll learn how to connect to the GraphQL API, which is specifically designed for monitoring your devices and tracking their temperatures. Setting Up and Deploying the Test App:

Step 1: Visit repository - https://github.com/datacake/datacake-next13-apollo-app. Click the green “Code” button located in the top right corner and select “Download ZIP” from the dropdown menu.

Step 2: Once the ZIP file is downloaded, extract its contents. Open the extracted folder in your preferred code editor (e.g., Visual Studio Code). If using Visual Studio Code, navigate to File > Open > Folder and select the extracted folder.

Step 3: Launch the terminal in your code editor (Ctrl/Command + ` for Visual Studio Code).

Step 4: Ensure your terminal’s working directory is set to \datacake-next13-apollo-app-main.

Step 5: In the terminal, enter npm run dev. Once the app starts, you’ll see a link highlighted in red. You can click on or copy this link to view the app in your browser.

Step 6: By default, the app should be accessible at http://localhost:3000. If you encounter any issues, refer to the terminal messages after executing npm run dev. Look for a line starting with “ready... url: http://localhost:...” to identify the correct port.

Step 7: Enjoy your custom application!