Setting up Local Server
- Install Dependencies
- Vagrant
- VirtualBox 6.0.x. Note: VirtualBox 6.1.x currently does not work with Vagrant. Make sure to use 6.0.x or older.
- Git
-
(Optional). Fork repository and create own website. See GitHub pages instructions for steps. Otherwise use
https://github.com/dnoneill/annotate.git
for step 3. -
Open Terminal(Mac/Linux)/Git Bash or Command Line(Windows). Clone this repository or clone forked repository and change directory:
$ git clone https://github.com/[username]/annotate.git $ cd annotate
-
Start vagrant environment in terminal.
$ vagrant up
- Start Jekyll and Flask
$ vagrant ssh [vagrant@localhost ~]$ cd /vagrant [vagrant@localhost vagrant]$ dos2unix run.sh #windows machines only [vagrant@localhost vagrant]$ ./run.sh
Navigate to http://localhost:5555/annotate/ to create annotations. Note Not all manifests load using Microsoft Edge. Firefox and Chrome are better alternatives.
Add new annotations to GitHub Website Locally
Note This should only be done if you have a GitHub website running. See /annotate/creating-github for instructions on how to create website.
- After new annotations have been created or deleted, navigate to the “annotate” folder on your device.
- type in
git status
- The window should show a number of annotations in red text, these annotations have been created locally but not on the GitHub site.
- type in
git add *
to add all changes. - type in git commit -m “message for commit here, usually can be something simple like ‘new images’”
- type in
git push origin master
. Github normally takes a minute to rebuild the site. After the items should be rendered and available for viewing and reuse on the site.