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:27
6 176
211
32
Last update : 21/12/2024
Play Video
1littlecoder
0:11:51
5 147
185
34
Last update : 22/12/2024
Play Video
1littlecoder
0:08:30
273
31
4
Last update : 17/11/2024
Play Video
1littlecoder
0:11:48
462
41
9
Last update : 14/11/2024
Play Video
1littlecoder
0:09:07
3 035
162
22
Last update : 16/11/2024
Play Video
1littlecoder
0:08:56
734
47
7
Last update : 07/11/2024
Play Video
1littlecoder
0:13:17
192
21
5
Last update : 07/11/2024
Play Video
1littlecoder
0:12:11
679
37
4
Last update : 07/11/2024
Play Video
1littlecoder
0:09:42
2 221
100
19
Last update : 07/11/2024