A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/mongodb/template-app-cpp-todo below:

GitHub - mongodb/template-app-cpp-todo: Atlas Template Starter App

A todo list application built with the Atlas Device SDK for C++ and Atlas Device Sync.

This app uses a terminal UI built with FTXUI.

Warning

As of September 2024, Atlas Device SDKs are deprecated. Atlas Device SDKs will reach end-of-life and will no longer be maintained by MongoDB on September 30, 2025.

The template app in this repository should only be used as a reference for the on-device database and not to create a new app based on Device Sync. Refer to the deprecation page for details.

For this template app to work, you must ensure that atlasConfig.json exists and contains the following properties:

Create an Atlas Device Sync Template App Create the Template App using App Services CLI

The easiest way to work with this client is to create the template app using App Services CLI. If you use the CLI to create the template app, or if you use the CLI to pull the C++ client you created from the App Services UI, you'll get a version of this client with the atlasConfig.json pre-populated with the appropriate values for your application.

For more information, refer to the Template App documentation.

If you have cloned this repository from the GitHub mongodb/template-app-cpp-todo repository, you must create a separate App Services App with Device Sync enabled to use this client. You can find information about how to do this in the Atlas App Services documentation page: Template Apps -> Create a Template App

Once you have created the App Services App, replace the value in this client's appId field in the atlasConfig.json file with your App Services App ID. For help finding this ID, refer to: Find Your Project or App ID

Making a Template App in the App Services UI

You can create a template app by logging on to Atlas App Services and click the Create App From Template button. Choose Real Time Sync, and then follow the prompts.

You can download some of the Sync clients from the UI as a .zip file. That is not possible at this time for the C++ client. To get a copy of the C++ client with atlasConfig.json values pre-populated with the data for your app, pull a copy of the template app client using App Services CLI. For more information, refer to the Atlas App Services documentation page: Template Apps -> Get a Template App Client.

This app uses CMake to manage dependencies. You must have CMake installed to use this template app.

Please report issues with the template at https://github.com/mongodb-university/realm-template-apps/issues/new

If the error modal displays, and you move your mouse over the item list in the terminal prior to dismissing the error modal, the UI rendering breaks. This is related to limitations with the FTXUI library. If this occurs, quit the app using ctrl + c, and re-run it. You can avoid this issue by using the enter key to press the Dismiss button in the error modal before moving the mouse.

To see the code examples concerned with Atlas Device SDK for C++, these files are the most relevant:

├── controllers
│   ├── app_controller.cpp
│   ├── app_controller.hpp
│   ├── controller.hpp
│   ├── home_controller.cpp
│   ├── home_controller.hpp
│   ├── login_controller.cpp
│   ├── login_controller.hpp
│   ├── navigation.cpp
│   └── navigation.hpp
├── main.cpp
├── managers
│   ├── auth_manager.cpp
│   ├── auth_manager.hpp
│   ├── database_manager.cpp
│   ├── database_manager.hpp
│   ├── error_manager.cpp
│   └── error_manager.hpp
├── ss.hpp
├── state
│   ├── app_config_metadata.cpp
│   ├── app_config_metadata.hpp
│   ├── app_state.hpp
│   ├── home_controller_state.hpp
│   ├── item.hpp
│   ├── offline_mode_selection.hpp
│   └── subscription_selection.hpp
└── views
    ├── scroller.cpp
    └── scroller.hpp

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4