Skip to content

jfharney/acme-web-fe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

acme-site

Build Status

Please Read the Development Guidelines

###ACME Dashboard init

fork git@github.com:acme-oui/acme-web-fe.git
git clone git@github.com:username/acme-web-fe.git
cd acme-web-fe
git remote add upstream http://github.com/acme-oui/acme-web-fe.git
git fetch upstream

sudo pip install virtualenv
virtualenv env
source env/bin/activate

You need to have installed openssl or myproxy-devel

pip install -r requirements.txt

local settings

vim local_settings.py

add this

import os.path

STATICFILES_DIRS = (
    '/path/to/acme-web-fe/acme_site/static/',
)

DATABASES = {
  'default': {
    'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
    'NAME': os.path.join(os.path.abspath("."), 'db.sqlite3'),
    'USER': '',
    'PASSWORD': '',
    'HOST': '',
    'PORT': '',
  }
}

#Get a key from the google registration page
RECAPTCHA_PUBLIC_KEY = ''
RECAPTCHA_PRIVATE_KEY = ''

# Make this unique, and don't share it with anybody.
SECRET_KEY = ''

JAR_PATH = '-Djava.class.path=/path/to/acme-web-fe/static/java/VeloAPI.jar'

static files

python manage.py collectstatic

Velo API

Open VeloAPI.py and change /Users/baldwin32/projects/acme-web-fe/acme_site/static/java/VeloAPI.jar to the location of your .jar file
source env/bin/activate
git clone https://github.com/originell/jpype.git
cd jpype
python setup.py install 
cd ..
rm -rf jpype

_Note_
If the Jpype install fails because of missing Python.h, you're missing the python dev tools. 
Simply: sudo apt-get install python-dev

setup db

python manage.py syncdb

setup admin

yes
admin
you@email.com
password
password

update db

python mange.py migrate

running

python manage.py runserver 

If you have turned on websharing on your mac you can display it using your machines url, eg

python manage.py runserver boxname.domain:8000

then from your browser you can view the site at

  • users front end
    • boxname.domain:8000/acme
    • 127.0.0.1:8000/acme
  • admin front end (not implemented yet)
    • boxname.domain:8000/admin
    • 127.0.0.1:8000/admin

About

acme over arching user interface (acme web front end)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 49.5%
  • HTML 32.1%
  • CSS 10.9%
  • Python 6.6%
  • Perl 0.2%
  • Classic ASP 0.2%
  • Other 0.5%