{"id":24829778,"url":"https://github.com/jbkahn/space-apps-2014","last_synced_at":"2025-03-26T02:22:11.817Z","repository":{"id":15948672,"uuid":"18691143","full_name":"JBKahn/space-apps-2014","owner":"JBKahn","description":"Spacet Challenge for NASA Space Apps 2014","archived":false,"fork":false,"pushed_at":"2014-04-14T04:23:46.000Z","size":33308,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-02T00:28:27.908Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JBKahn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-11T22:58:50.000Z","updated_at":"2014-04-14T04:23:47.000Z","dependencies_parsed_at":"2022-09-24T06:02:08.824Z","dependency_job_id":null,"html_url":"https://github.com/JBKahn/space-apps-2014","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBKahn%2Fspace-apps-2014","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBKahn%2Fspace-apps-2014/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBKahn%2Fspace-apps-2014/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBKahn%2Fspace-apps-2014/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JBKahn","download_url":"https://codeload.github.com/JBKahn/space-apps-2014/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245574104,"owners_count":20637717,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-30T23:38:57.924Z","updated_at":"2025-03-26T02:22:11.794Z","avatar_url":"https://github.com/JBKahn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"NASA Space apps 2014: SpaceT Challenge, Team Insight\n====================================================\n[Spaceapps Challenge Project Insight](https://2014.spaceappschallenge.org/project/insight-/)\n\nInSight is a voice and motion activated data visualization platform and companion application for heads up display. Aggregating information from biometric sensors, location, and external data such as oxygen and radiation, InSight enhances the experience of being in outer space by providing contextual information about your surroundings via augmented reality. \n\nSetup\n=====\n\nInstall your front-end libraries with the Node Package Manager and Grunt/Bower:\n\n\t$ npm install -g bower\n\n    $ bower install\n\n    $ npm install -g grunt-cli\n\n    $ grunt\n\nMake python virtual environment\n\n0. Ensure you have both python and pip installed.\n1. `pip install virtualenv`.\n2. `pip install virtualenvwrapper` and [setup required variables](http://virtualenvwrapper.readthedocs.org/en/latest/install.html).\n3. go to the project directory.\n4. `mkvirtualenv spacet -a (project-directory) -r ./requirements.txt`. (You can use `pip install -r ./requirements.txt` to install the project requirements at any time).\n5. Use `workon spacet` at any time to get back into the virtual environment.\n\nStart the app\n\n    $ python manage.py runserver 8000\n\nNavigate to the website\n\n    It's located at `http://localhost:8000/`\n\nRequirements\n============\n\n* python 2.7\n* Ruby and the sass gem\n* pip\n* NodeJs\n\n\nRunning The Tests\n=================\n`nosetests --with-progressive`\n\nPre-Commit Hook\n===============\n\nPlace this in project_directory/.git/hooks/pre-commit (make sure it's executable)\n```bash\n#!/bin/bash\n\nexport TERM=xterm-256color\n\nflake8=$(which flake8)\n\nif [ -z \"$flake8\" ]; then\n    $echo \"You must install flake8; sudo pip install flake8\"\n    exit 1\nfi\n\nFILES=$(git diff --cached --name-only --diff-filter=ACM | grep -e '\\.py$')\n\n# Check for print statements\nif [ -n \"$FILES\" ]; then\n    printf \"\\e[32mChecking files for print violations\\n\\033[0m\"\n    grep -n -E -v \"^#\" $FILES | grep -E \"[^\\\"']\\bprint[\\\"' ]+\"\nfi\n\n# Check for ipdb and pdb imports/usage\nif [ -n \"$FILES\" ]; then\n    printf \"\\e[32mChecking files for pdb violations\\n\\033[0m\"\n    grep --exclude=\\*pre-commit -n -E \"import.*i?pdb|i?pdb\\.\" $PYTHON_FILES\nfi\n\n# Auto-check for pep8\nif [ -n \"$FILES\" ]; then\n    printf \"\\e[32mChecking Python files for flake8 violations\\n\\033[0m\"\n    flake8 --ignore=E501 $FILES\n    RETVAL=$?\nfi\n\n# Run nosetests\nnosetests --with-progressive\nPASSED=$?\n\nexit $RETVAL \u0026\u0026 $PASSED\n```\n\nPost-Checkout Hook\n==================\nPlace this in project_directory/.git/hooks/post-checkout (make sure it's executable)\n\n```bash\n#!/bin/bash\n\nexport TERM=xterm-256color\n\n# Start from the repository root\ncd ./$(git rev-parse --show-cdup)\n\nprintf \"\\e[32mRemoving .pyc and empty directories...\\n\\033[0m\"\nfind . -name \"*.pyc\" -delete\nfind . -type d -empty -delete\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbkahn%2Fspace-apps-2014","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbkahn%2Fspace-apps-2014","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbkahn%2Fspace-apps-2014/lists"}