TOC:
- I imagined each lesson would build on top of the other in the same repo, instead I realized I was wrong after finishing the first section. So I undertook a small project to clean things up and bring all lessons into one repository.
- I made a new repository, I setup my remote
origin
to the remote branch I had already been pushing to. - I created a subtree 1 , from the
main
branch of thatorigin
remote. - I then used
git push --force origin HEAD
to "rewrite" my commit history oforigin
(which had already been on GitHub), This forced a rewrite of myorigin
commit history with my localmain
branch history (where myHEAD
was).
- I made a new repository, I setup my remote
- I already knew the basics of Semantic Versioning, but I got a clearer understanding of the
MAJOR.MINOR.PATCH
meaning and how to control what updates your applications will allow with the~
and^
prefixes.
- I learned about the global variable in Node
__dirname
which gives the absolute path of the directory that contains the currently executing file (I used to think./
was just as reliable but I was mistaken 2). - I have a better understanding of how to use express to handle routing and serve content.
- I learned that when watching for any request method with a path that has a colon
:
character prefixed (e.g./:somepath/foo
) that path becomes a variable tied to the request object (i.e.req.params.somepath
) - I learned the basics about how to build and chain middleware functions, and how to pass information along in the request object until a final response call is made.
- I learned that when watching for any request method with a path that has a colon