Nov 8
Monday's assignment has been posted.
Questions about anything so far?
git
First, I think it's time you started playing around with
a version control system, if you haven't before.
Git is a very common choice these days, and so let's use that one.
See
Here's a walk-through of some of the very basics:
# create a demo project folder
$ mkdir my_project; cd my_project
$ echo "It's just a demo project" > README.txt
$ echo "This is a file." > file.txt
# now turn it into a git repository.
$ git init
$ ls -al
.
..
.git # "git init" created this.
README.txt
file.txt
# save everything to the local .git repository
$ git add * # schedule all files to be added to repo ("staging")
$ git commit -m "first commit"
# other things to try along the way
$ git help
$ git status
$ git log
Concepts:
- local repository / remote repository / bare repository
- commit
- branch
- add (to index) ; commit (to local repo)
- push (to remote repo); pull (from remote repo)
- clone (from existing git repo / folder, via ssh, http, ...)
Examples:
flask
continue with
Nov 6 notes : routes, templates
Now look back at main file, routes, & templates in brighton.org's github site.
Note the use of (a) virtualenv to install python packages (we'll go over that another time), (b) markdown (becoming more common now that github is using it) for editing minutes of meetings.