From the course: Windsurf for Privacy-Conscious Development

Windsurf

- [Instructor] Here we're going to be going over how to install and set up Windsurf onto your desktop device. The setup for Windsurf is a very simple process, and it's something that will ultimately very heavily benefit your development and your workflow. So simply all we need to do is at the front page, Download for Windows, assuming we have a Windows device, and download what we want. Now, if you don't have Windows, if you want to install on macOS or Linux, you can easily go down to the other download options and access it and access it on Linux or on Mac. And once we have it installed onto our computer, all we have to do is open it once it fully installs by clicking Finish, and Windsurf will open immediately ready for setup for onboarding. Now, setting up Windsurf is very fairly easy. All you have to do is hit Get started and you can choose whether you want to import your extensions and settings from VS Code or start fresh. Here, I'm just going to import everything from VS Code. We can choose the theme we want to do. And in order to access the AI features, and we're going to want to either log into Windsurf or create a Windsurf account. Now, once we are fully logged in, we're going to have all access to Windsurf. We're going to be able to see our current existing projects, we're going to be able to open a folder, we're going to be able to generate any project and prompt Cascade Code, which is Windsurf's AI, to generate whatever we want, or we can just go in through an existing project. So here we have a simple just dummy authentication configuration app. So if we want to ask questions about it, we get an open Windsurf's AI, Cascade Code, and we can start asking and going through a different bunch of different models. They have GPT-5, Sonnet 4, Gemini, among other things. You can choose its agent mode, whether you want to talk about code or just talk to it directly. And you can upload images, mentions. You can configure the rules and workflows and what you want it to remember as well as different agents. So if we want to scan this code, for example, for potential vulnerabilities, we're just going to simply ask Cascade Code to, Can you scan this code for security vulnerabilities?" And it'll swiftly show us the different security vulnerabilities, such as hard-coded credentials, input validation that's missing, information disclosure. And it gives us a very detailed response of the security fixes that we need to do and implement as well as potential additional security measures that we may want to add in the future. Now we can continue to ask more, such as what the risks are of having these values be hard coded and get a better underlying understanding of what the issue is. And once again, it gives us a very detailed response about all of the different potential impacts and how detrimental this truly is. Now, if we want to properly help fix this file, we can simply ask Windsurf's AI to refactor with this code for us based on the security issues that it presented to us and use environment variables, and we can watch it go and do its magic. And as it's working, it's going to show us the step-by-step progress that it's going to go through and a to-do list of what it's going to need to go through and all the checks that's going to need to hit. So it's just creating an EMV file, updating config to use environment variables, creating a gitignore, an example template file, and proper dependencies and usage instructions. So it'll go through all of these tasks, making sure they've all been completed, adjusting it, and I'll ask me if it can change the file. I'm going to agree to all of these to make sure that it's all fixed. And now, when all is said and done, all of the tasks are fully completed. Now, we can read through all of the issues that it addressed, what it's implemented, all of the in-depth explanations of what it did and how that properly works, and the next steps on my end, such as installing the dependencies, making sure to rotate the credentials, and testing out the application. So this is just a very simple demonstration on what Windsurf is and the potential benefits of being able to use and being able to use Windsurf's AI as you're developing and address any security issues or other issues that you come across when writing your code, helping you to understand the issues and help fix any vulnerabilities that your code needs addressing.

Contents