The repository for Once Upon A Type, a web typography course running on hyperlink.academy
- Download a code editor. I like VS Code. If you have a code editor you prefer, great! Keep using what you're using.
- Open VS Code
- In the top bar, View > Extensions
- In the sidebar search for
Prettier - Code Formatter
and click + install the first result (Prettier is a nice plugin for VS Code that fixes your code formatting when you hit save. Must have for the beginner coder!)
We will go through this in a session together. Email me if you missed that session!
- Open VS Code
- File > Open
- Open the onceuponatype FOLDER (not just the file you want to edit)
- In the side bar, find and open your file (onceuponatype > pages > your story title)
- Make changes!
- Open the page you want to see in your computer finder
- Right Click > Open With > Firefox/Chrome/Whatever
- This will open the page as a website
- Whenever you make a change to the page in the code, save the code and refresh the website
Do this exactly. The instructions will make sense as you follow them. If it doesn't work, get my attention and I'll help.
- Open terminal (in VS Code, press ^ ~)
- Make sure that no changes have happened since you last updated your code by typing in Terminal:
git pull origin master
- Then type:
git status
- Check that it found all the changes you made correctly
- Then type:
git add *
- Then type:
git commit -m "write a short message about your changes"
- Then type:
git push origin master
- If should say "working tree clean"
- BOOM! All done!
BONUS: getting the most recent update: git pull orgin master
TODO FOR CELINE [] link to VS code [] find recourses for downloading NPM and node