UPDATES

Code Snippet Builder – Create beautiful code snippets


The Code Snippet Builder is an revolutionary software designed to assist builders and programmers create visually interesting and professional-looking code snippets for numerous programming languages. With its user-friendly interface and drag-and-drop performance, the builder simplifies the method of showcasing code in a sexy and customizable method.

Whether or not you might want to doc your code, share examples in tutorials, or improve your technical documentation, the Code Snippet Builder is the proper answer. It affords a variety of customizable choices, together with numerous templates and styling options, permitting you to create snippets that align along with your branding or mission necessities.

The builder’s intuitive drag-and-drop performance lets you effortlessly prepare code blocks, add syntax highlighting, and format your snippets to make them extra visually partaking. You’ll be able to simply customise the looks of your code snippets, adjusting font kinds, colours, background themes, and extra.

editor

The Code Snippet Builder helps a number of programming languages, catering to the various wants of builders throughout totally different domains. Whether or not you are working with Python, JavaScript, TypeScript, or another language, you possibly can depend on the builder to generate lovely code snippets that successfully talk your concepts.

Utilizing the Code Snippet Builder, you possibly can elevate your code documentation, making it extra accessible and visually interesting to fellow builders, purchasers, or customers. Begin constructing lovely code snippets right now and improve the way you current and share your code.

dashboard

The desktop model of our web site offers the very best expertise. For optimum utilization, please entry it out of your desktop.



Tech Stack

  • ReactJs: Empowering the creation of UI parts with its component-based structure.

  • TypeScript: Enabling kind security and stopping runtime errors within the improvement course of.

  • Netlify: Facilitating the seamless deployment of the mission.

  • Appwrite Cloud

    • Auth: Streamlining authentication and authorization administration.

      • Electronic mail/Password
      • Google
      • Github
    • Database: Serving as a dependable storage answer for the snippets of information.

    • Storage: Offering a safe and environment friendly repository for storing the snapshot photographs of code snippets.



Challenges We Confronted

Throughout the improvement course of, I encountered some thrilling challenges that I needed to overcome by studying documentation, collaborating with the Appwrite group, and searching for assist from different builders.

These explicit features proved to be essentially the most tough for me.



Database relationship

When working with the Appwrite cloud, I encountered a model mismatch. The model I used to be utilizing, 1.1.x, did not have help for creating relationships between customers and their information. To deal with this problem, I reached out to the useful Appwrite group on Discord. They offered me with helpful options and suggestions. In the end, I made a decision to affiliate the consumer with the snippet information by storing the consumer ID. This answer allowed me to beat the limitation and set up the specified relationship between customers and their information.



Situation Question

After I was engaged on itemizing customers’ snippets on the dashboard, I got here throughout a problem. I wanted to determine tips on how to fetch solely the snippets belonging to the present consumer. After studying the documentation, I found an answer. Appwrite offers a Question mannequin that enables us to jot down situations, which helped me filter and fetch solely the snippets related to the present consumer.

Question.equal("creator", "creatorId")
Enter fullscreen mode

Exit fullscreen mode



Snippet Snapshot picture

Whereas engaged on the dashboard, I encountered a problem once I needed to show a visible preview of the snippets created by the consumer. The issue was tips on how to retailer the snapshot picture information. To deal with this, I referred to the storage documentation and found that Appwrite affords a set of strategies particularly designed for creating, updating, and deleting recordsdata of varied sorts akin to PNG, JPG, and extra. This enabled me to efficiently retailer and handle the snapshot photographs related to the snippets.



Public Code Repo

The Code Snippet Builder welcomes contributions and has a public repository obtainable for collaboration.

Code Snippet Builder is licensed beneath the MIT License – see the LICENSE file for particulars.



Demo Hyperlink

Web site: https://snippetbuilder.sachinchaurasiya.dev/

Electronic mail: demo@codesnippetbuilder.com

Password: demo@123

And that’s it for this matter. Thanks for studying.



Join with me 👋

Leave a Reply

Your email address will not be published. Required fields are marked *