January 2024 Summaries
11 posts from Convex
Filter
Month:
Year:
Post Summaries
Back to Blog
Jason Lengstorf presents a project where a web app is enhanced to create posts through texting, utilizing Convex Actions for backend operations and Twilio for SMS handling, with authentication managed by Clerk. The app demonstrates how these technologies can seamlessly integrate to provide cloud functions, database management, file storage, scheduling, workflow, vector search, and real-time updates, making it suitable for building scalable full-stack AI projects. Lengstorf encourages readers to join his newsletter for more tutorials, live events, and interviews, offering insights into building and scaling applications efficiently.
Jan 31, 2024
88 words in the original blog post.
Convex Ents is a library designed for the Convex platform, aimed at simplifying the management of document relationships in databases by providing functionalities such as easier modeling and querying of related documents, mapping and filtering of database entries, and ensuring unique field values. It allows for defining default values to facilitate schema evolution and supports various deletion methods—including cascading, soft, and scheduled deletions—to handle related document relationships effectively. The library draws parallels with ORMs like Prisma and Drizzle, making it accessible for users familiar with these tools. While Convex Ents facilitates these tasks through a more streamlined and efficient approach, all of these capabilities can still be achieved using basic Convex features. Despite being in a maintenance mode where no active feature development is planned, Convex Ents can be further customized or forked by users to fit specific needs, and it serves as an example of the potential abstractions possible on the Convex platform.
Jan 30, 2024
2,769 words in the original blog post.
Code With Antonio offers a project tutorial on building a real-time Miro clone using Next.js, React, and TailwindCSS, with the source code available online. The project incorporates features such as a whiteboard created from scratch, a versatile toolbar with tools like text, shapes, sticky notes, and a pencil, as well as layering and coloring functionalities. It includes undo and redo capabilities, keyboard shortcuts, and real-time collaboration supported by a real-time database. Authentication, organizational features, invites, and favoriting functionality are also integrated, all built on the Next.js 14 framework. The backend is powered by Convex, which provides cloud functions, a database, file storage, scheduling, workflow, vector search, and real-time updates to support full-stack AI projects.
Jan 29, 2024
117 words in the original blog post.
A tutorial video by Web Dev Cody provides a comprehensive guide to building a subscription-based SaaS platform using Stripe, Convex, Clerk, and Next.js, designed particularly for YouTube content creators seeking feedback on their thumbnails. The project demonstrates how to integrate Stripe for subscription payments, Convex as a backend platform offering essential features like cloud functions, database management, and real-time updates, Clerk for user authentication, and Next.js for the frontend development. The tutorial emphasizes the ease of building and scaling a full-stack AI project efficiently, highlighting the seamless integration of these technologies to create a robust application.
Jan 24, 2024
90 words in the original blog post.
Session tracking via parameter injection offers a way to manage user data without infringing on privacy by using client-generated session IDs, such as UUIDs, as opaque identifiers. This method helps track user interactions on a browser or tab level while maintaining data security through server-side storage and authentication. The approach avoids the pitfalls of storing sensitive information directly in cookies or browser storage, which can be accessed by subsequent users, by associating data with session IDs on the server. Utilizing tools like Convex, developers can implement this system by configuring session storage preferences and using React Context to manage session IDs across components. Furthermore, the article discusses best practices such as refreshing session IDs upon login and logout to prevent session hijacking, and advises on structuring data to optimize caching and avoid conflicts during frequent data transactions. Developers are encouraged to use custom functions to maintain efficient code and prevent exposure of session IDs to unauthorized clients. Overall, this method supports scalable and secure session management in web applications.
Jan 22, 2024
2,903 words in the original blog post.
The text discusses the use of branded types in Convex validators to ensure more specific type safety in TypeScript, particularly when dealing with different string types. By casting in schema definitions, developers can maintain type hints and avoid type errors. It highlights the methodology of using branded strings for defining more refined types at the type level, while at runtime these types are validated as regular strings. The text also warns about potential pitfalls when overriding type safety using the `as` keyword, as TypeScript may not prevent all errors. Convex, the platform in question, offers a comprehensive backend solution for building full-stack AI projects, integrating various features like cloud functions, databases, and real-time updates.
Jan 20, 2024
806 words in the original blog post.
Ian Macartney's post explores how to effectively structure and query database relationships using Convex, a platform that provides predictable primitives for data retrieval without relying on a query planner like SQL. The post introduces helper functions available in the convex-helpers npm package to simplify the process of traversing one-to-one, one-to-many, and many-to-many relationships, making queries more readable and debuggable. These helpers, such as getAll, getOneFrom, and getManyVia, allow developers to write code that fetches complex data in a structured manner, avoiding the unpredictability of traditional SQL query planners. The article emphasizes the advantages of Convex's architecture, including its proximity to the database, which reduces wait time and enhances performance, and its deterministic V8 runtime that efficiently caches queries while maintaining strong ACID guarantees. By using these tools, developers can write JavaScript code to perform intricate data operations without resorting to SQL commands, thus gaining more control over query execution.
Jan 15, 2024
3,162 words in the original blog post.
The detailed guide explores how to enhance the functionality of `npm run dev` using package.json scripts, offering strategies for decomposing complex commands, running multiple commands in parallel, and maintaining normal Ctrl-C behavior. The article illustrates the use of npm-run-all and concurrently packages to execute commands simultaneously, and explains the benefits of using pre- and post-scripts to manage execution sequences effectively. It also addresses how integrating npm scripts with CI/CD pipelines can streamline development workflows. The text provides examples of command configurations, such as defining separate scripts for backend and frontend development, handling initial deployments, and running tests with Vitest. The guide emphasizes the power and flexibility of npm scripts in automating and managing development tasks, ensuring consistent builds, and facilitating easier collaboration.
Jan 12, 2024
2,186 words in the original blog post.
Michal Srb's presentation at the AICamp 2023 End of Year Meetup focused on developing context-augmented AI chat systems, starting at the 13:06 mark. The talk highlighted the use of Convex, a comprehensive backend platform that supports the rapid development and scalability of full-stack AI projects. Convex offers a range of integrated features, including cloud functions, databases, file storage, scheduling, workflows, vector search, and real-time updates, to facilitate the seamless construction of AI-powered chat applications. Additionally, the presentation referenced several relevant Stack posts that explore different methodologies for building AI chat systems using various technologies, such as vector databases, Convex vector search, Langchain, and OpenAI's assistant API.
Jan 09, 2024
75 words in the original blog post.
In a collaborative effort using the Convex backend platform, four web developers each created a unique full-stack application within four hours, centered around a Dungeons and Dragons-themed business, as part of the "4 Web Devs, 1 App Idea" video series. The developers, Jason Lengstorf, Anjana Vakil, Cody, and Tom Ballinger, showcased their distinct projects, each offering real-time updates and utilizing Convex's capabilities for cloud functions, databases, file storage, scheduling, and more. Their projects, which include apps like "The Obsidian Forge" and "Quest Ferret," are accompanied by live demos and source code available on platforms like GitHub, illustrating the flexibility and scalability of Convex for building full-stack applications.
Jan 08, 2024
154 words in the original blog post.
Web Dev Cody presents a four-hour coding challenge titled "the-obsidian-forge," highlighting the capabilities of Convex, a comprehensive backend platform ideal for developing full-stack AI projects. Convex offers an array of integrated features including cloud functions, a database, file storage, scheduling, workflow, vector search, and real-time updates, enabling developers to quickly build and scale their applications.
Jan 08, 2024
54 words in the original blog post.