<commit_before>Snowranger is working to help low-mobility individuals plan trips in cities, by collecting and presenting information about barriers to passage, such as construction and unplowed snow.  We plan to collect this data from the users themselves using a mobile app. Our ultimate goal is to make this a transportation option for Google transit directions for the end-users, and an enforcement tool and a data source for municipalities.  


## Fire'r up! 
```bash
$ workon myVirtualEnv # Virtualenv with python 3.5.0
$ sudo pip3 install Django # If you don't have Django, get it. 
$ cd path/to/snowranger
$ python3 ./src/snowranger/manage.py runserver # http://127.0.0.1:8000/
```

### Find the front end
```bash
# The main index.html
/snowranger/src/snowranger/conditions/static/templates/conditions/snowranger.html
# Javascript components
/snowranger/src/snowranger/conditions/static/conditions/(js|css)
# There is also...
/snowranger/src/snowranger/static/img # This is where the images live for now. But this will change. 
```

### Deploy
I used the instruction here to set up the webserver:
http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/

To deploy new code, 
$ sudo su snow
$ git pull
$ exit # i.e., go back to user Ubuntu
$ sudo supervisorctl restart snow

----
### Ignore the darn __pycachers__. 
> http://stackoverflow.com/questions/1470572/gitignore-ignore-any-bin-directory

```
# .gitignore
__pycache__/
```
```
# So if you want add to ignore some directories in your local repository (which already exist) after editing .gitignore you want to run this on your root dir
$ git rm --cached -r .<commit_msg>correct errors with last readme<commit_after>Snowranger is working to help low-mobility individuals plan trips in cities, by collecting and presenting information about barriers to passage, such as construction and unplowed snow.  We plan to collect this data from the users themselves using a mobile app. Our ultimate goal is to make this a transportation option for Google transit directions for the end-users, and an enforcement tool and a data source for municipalities.  


## Fire'r up! 
```bash
$ workon myVirtualEnv # Virtualenv with python 3.5.0
$ sudo pip3 install Django # If you don't have Django, get it. 
$ cd path/to/snowranger
$ python3 ./src/snowranger/manage.py runserver # http://127.0.0.1:8000/
```

### Find the front end
```bash
# The main index.html
/snowranger/src/snowranger/conditions/static/templates/conditions/snowranger.html
# Javascript components
/snowranger/src/snowranger/conditions/static/conditions/(js|css)
# There is also...
/snowranger/src/snowranger/static/img # This is where the images live for now. But this will change. 
```

### Deploy
I used the instruction here to set up the webserver:
http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/

To deploy new code, 
```
$ ssh <EMAIL> #Repo admins have private key
$ sudo su snow
$ git pull
$ exit # i.e., go back to user Ubuntu
$ sudo supervisorctl restart snow
```
----
### Ignore the darn __pycachers__. 
> http://stackoverflow.com/questions/1470572/gitignore-ignore-any-bin-directory

```
# .gitignore
__pycache__/
```
```
# So if you want add to ignore some directories in your local repository (which already exist) after editing .gitignore you want to run this on your root dir
$ git rm --cached -r .
{'fraction_non_alphanumeric': 0.0970873786407767, 'fraction_numerical': 0.0176522506619594, 'mean_word_length': 4.151515151515151, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5571343', 'n_tokens_mistral': 1092, 'n_tokens_neox': 1003, 'n_words': 395}