This is the MVP for a open data project that will display -> "Fuel economy data are the result of vehicle testing done at the Environmental Protection Agency's National Vehicle and Fuel Emissions Laboratory in Ann Arbor, Michigan, and by vehicle manufacturers with oversight by EPA".
You can find the data set at fueleconomy.gov. Currently only querying data from 2011-2014, however this can be fixed via dataset variable in api.py.
Currently hosted at one of our personal subdomains.
This project was great at teaching what it takes to host a web app. This included a stack from the OS up to REST API.
Fuel-OD requires Node.js, Ruby, Django and a PostgresQL database.
virtualenv env
source env/bin/activate
# pip install -r requirement_file.txt
export DJANGO_SETTINGS_MODULE='opendata.settings'
nodeenv -vp # the '-p' allows for nodeeenv to be attached to your virtualenv
vi opendata/settings.py
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = ''
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': '',
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
python manage.py syncdb
python manage.py shell < parseCSV.py
python manage.py runserver 0.0.0.0:8732
I find it to be helpful script that will start your app server and logging.
chmod +x gunicorn_start.sh
./ gunicorn_start.sh
npm install -g grunt
npm install -g grunt-cli
npm install -g bower
npm install -g claymate
npm install
bower install
npm start
gem install compass sass
gem install modular-scale -v 1.0.6
#
grunt build
#compile css
grunt compass
#convert bower libraries to CommonJS modules
grunt browserifyBower
#run browserify
grunt browserify
#run jshint
grunt jshint
#minify javascript
grunt uglify
#run default grunt task
grunt
Back End OG -->Jaren Glover - @GloveDotcom - www.JarenGlover.com
Front End Capo -> Dan Carter - @dcarter_js