Skip to content

Instantly share code, notes, and snippets.

View LuceCarter's full-sized avatar

Luce Carter LuceCarter

View GitHub Profile
@LuceCarter
LuceCarter / EmbeddingResponse.cs
Created April 8, 2024 10:49
Code snippets for the MongoDB Atlas Vector Search with C# and Blazor tutorial
namespace SeeSharpMovies.Models
{
public class EmbeddingResponse
{
public string @object { get; set; }
public List<Data> data { get; set; }
public string model { get; set; }
public Usage usage { get; set; }
}
@LuceCarter
LuceCarter / NewsPage.razor
Created March 5, 2024 11:53
NewsPage.razor code from the Atlas and App Services tutorial
@* The `page` attribute defines how this page can be opened. *@
@page "/news"
@* The `MongoDB` driver will be used to connect to your Atlas cluster. *@
@using MongoDB.Driver
@* `BSON` is a file format similar to JSON. MongoDB Atlas documents are BSON documents. *@
@using MongoDB.Bson
@* You need to add the `Data` folder as well. This is where the `News` class resides. *@
@using CryptoNews.Models
@using Microsoft.AspNetCore.Builder
@LuceCarter
LuceCarter / Home.razor Code
Created February 26, 2024 10:58
Atlas Full-Text Search with .NET Blazor Snippets
@code {
//...
string searchTerm;
Timer debounceTimer;
int debounceInterval = 200;
//...
@LuceCarter
LuceCarter / application.css
Last active October 19, 2023 13:39
Companion code for Ruby on Rails and Atlas Application
footer { margin-top: 100px; }
table, td, th { vertical-align: middle; border: none; }
th { border-bottom: 1px solid #DDD; }
body { margin: 0; }
.navbar {
min-height: 38px;
background-color: #ECA72C;
}
.navbar-brand {
font-size: 24px;
@LuceCarter
LuceCarter / database.js
Last active September 29, 2023 20:55
Roughly accurate BS
const { MongoClient } = require('mongodb');
let mongoClient;
let db;
let todosCollection;
export async function initDatabase() {
mongoClient = await MongoClient.connectToDatabase(process.env.MONGODB_ALTAS_URI, {appName: "findmesomethingtodo"});
if(await preFlightChecks(mongoClient)) {
@LuceCarter
LuceCarter / mernstackbuild.yml
Created January 11, 2023 15:59
Mern Stack Example Build Step YAML
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Install npm packages - server
run: |
cd mern/server
npm install

120/80 - How I built a blood pressure tracking app using MongoDB's Develoer Data Platform and Xamarin

In this talk, Luce shows you how she had an idea for an app to track blood pressure and pulse readings and how she created it using MongoDB's Developer Data Platform including Realm and Atlas App Services.

Zero to Mobile Database Hero

Introduction

This Gist is intended to be a list of useful links, related to Luce Carter's talk "Zero to Mobile Database Hero"

Links

  • Slides
  • GitHub Repo
  • MongoDB University - Free learning platform with videos, labs and quizzes on all things MongoDB from beginner to advanced
  • Community Forums - Our forums are the best place to ask questions, share your projects and meet others from MongoDB and the wider community