Skip to content
1littlecoder
0:12:00
2 298
87
23
Last update : 11/09/2024

🎨 Code a Canva-like Mac App with Electron JS & Cursor AI 💻

✨ Introduction

Ever wished you could build your own desktop apps? This breakdown unpacks how to create a basic Canva-like photo editor that runs locally on your Mac, using Electron JS and the power of Cursor AI. 🤯

🖼️ Building the Photo Editor Foundation

We’ll start by leveraging Electron JS’s quick start template, which provides a basic framework for building cross-platform desktop apps using web technologies.

  • Installation is Key: Ensure you have Node.js installed. Then, use your terminal to navigate to your desired directory and run the Electron quick start command. This sets up the initial files and installs necessary libraries.
  • Cursor AI Enters the Scene: Open your project in Cursor AI. This AI-powered code editor will be our co-pilot throughout the development process.
  • Defining the Vision: In Cursor, provide a clear description of what you want to build: a photo editor named “Mana” with functionalities like brightness, contrast, saturation, filters like vineyard, and basic upload/save options. Specify that the UI should adhere to MacOS design principles.

🪄 Coding with Cursor AI

This is where the magic happens! ✨ Cursor AI takes your instructions and starts generating the code, creating and modifying files as needed.

  • Command-Shift-Enter: This keyboard shortcut is your best friend in Cursor. Use it to instruct Cursor to start building based on your provided description.
  • Iterative Refinement: Don’t be afraid to provide feedback and ask for specific changes. For example, you can request Cursor to add more photo editing features like crop, filters, and even improve the UI.

🧰 Troubleshooting and Enhancements

As with any coding project, expect some debugging. Cursor can help here too!

  • Describe the Issue: Clearly articulate any errors or desired improvements to Cursor.
  • Leverage Cursor’s Knowledge: Cursor can suggest solutions, fix bugs, and even integrate external libraries like Google Material Icons to enhance your app’s look and feel.

🚀 Launching Your Canva Clone

Once you’re satisfied with the development, it’s time to run your app!

  • Terminal Time: Head back to your terminal and run the start command provided by Electron JS.
  • Behold Your Creation: You should now have a functioning photo editor, complete with features like brightness, contrast, saturation, filters, and more!

🧰 Resource Toolbox

🎉 Conclusion

Congratulations! 🎉 You’ve just built a basic Canva-like photo editor using Electron JS and the power of Cursor AI. This is just the beginning; with a little creativity and the assistance of these tools, you can build amazing desktop applications.

Other videos of

Play Video
1littlecoder
0:08:08
1 372
130
45
Last update : 20/09/2024
Play Video
1littlecoder
0:08:12
323
50
13
Last update : 18/09/2024
Play Video
1littlecoder
0:08:59
977
49
9
Last update : 18/09/2024
Play Video
1littlecoder
0:08:37
1 324
70
15
Last update : 19/09/2024
Play Video
1littlecoder
0:08:21
2 074
101
31
Last update : 18/09/2024
Play Video
1littlecoder
0:10:24
2 210
138
30
Last update : 18/09/2024
Play Video
1littlecoder
0:10:49
7 315
337
39
Last update : 18/09/2024
Play Video
1littlecoder
0:14:58
4 258
147
39
Last update : 18/09/2024
Play Video
1littlecoder
0:10:30
8 206
308
95
Last update : 18/09/2024