-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create new guidance that uses Visual Studio Code for everything #190
Comments
Note from experience using Visual Studio Code:
|
Extra notes with Visual Studio Code:
|
I like this idea, I've never used GitHub Desktop so I can't really comment on whether this is easier, but it would certainly make guidance simpler – fewer tools is usually a good thing. Maybe if we were to go ahead with this we'd need to A/B test it with a few new folk? |
I've never done PRs in VScode though, just making branches, commits and pushes, merge conflicts etc. To me, it seems to make sense to deal with things on the github website once they're in the repo, but maybe that's just me. |
For install, the steps will probably be: 1. Software requirementsInstall the following software:
If you are on a NHS Windows managed laptop download these from the software applications store. 2. Install the kitDownload the kit as a zipThe simplest way to get the kit is to download it as a zip. You'll use a new copy of the kit for each new prototype you make. That way your prototypes don’t interfere with each other. Make sure you are installing the kit on a local drive. Do not install the kit on a cloud-based drive (for example, Dropbox, Microsoft OneDrive), as this may cause permissions issues. Make a folder for your prototypesWe recommend keeping all your prototypes in one folder. Create a folder called prototypes in your Documents folder. If you are on a NHS Windows managed machineWithin the root of your OneDrive create a new folder named DevWspace. This folder name is on an approved list so you can create virtual environments and execute scripts. The path should look like this after you have created it: "C:\Users%username%\OneDrive - NHS\DevWspace" Use this folder:
Unzip the kit and move itUnzip the kit you downloaded - you should end up with a folder called nhsuk-prototype-kit followed by the version number. Rename the folder to something descriptive for your prototype. For this guide, we’ll use magical-powers. Move the folder into your prototypes folder. Terminal basicsThe terminal in Visual Studio Code (and in MacOS and Linux) lets you type in commands and run programs on your computer. The important thing to remember about the terminal is that you‘re working in one directory (folder) at any one time. There are a few commands you‘ll have to run in the terminal to use the Prototype Kit. Commandscd [name of directory] = change to [name of directory] If you type a command that the terminal does not understand, it will show you an error message. Do not worry if you see one of these. Have a look at the command you wrote and see if there is a typo in the command. You can follow a tutorial on basic terminal commands on the codebar website. Navigating to your prototype folderYou need to navigate to your prototype folder in the terminal. Most commands for the kit need to be run in the prototype folder. If you are using Visual Studio Code, cd ~/Documents/prototypes/magical-powers If any of your folder names contain spaces, you must add quotation marks around everything after ~/. For example: cd ~/"a folder name with spaces/Documents/prototypes/magical-powers" npm install 3. Run the kitYou’ll use the terminal to start and stop the kit. Open the prototype folder in terminal If you're coming back to work on a prototype, you'll need to navigate to the folder: cd ~/Documents/prototypes/magical-powers Running the kitIn the terminal, enter: npm start After the kit has started, you should see a message telling you that the kit is running: Listening on port 3000 url: http://localhost:3000 Check it worksIn your web browser, open http://localhost:3000 (opens in a new tab) Screenshot of what your prototype homepage should look like. Quitting the kitIt’s fine to leave the kit running for days or while your computer is asleep. To quit the kit, in the terminal press the ctrl and c keys together. Installation complete Make your first prototypeYou can now start the tutorial to make your first prototype or view other guides. |
I've always thought (suspected) that Github Desktop / a GUI is easier for people new to git - you click on the things you want to commit, it guides you though quite a few of the actions. Would this imply only teaching command line usage? |
Visual Studio Code is a tool that has the potential to be the:
This will also mean that we have guidance that works for Codespaces (what people can use if they cannot install anything on their laptop).
Changing this will mean updating the:
The text was updated successfully, but these errors were encountered: