Skip to content

kyrivanderpoel/ims

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create the db user

sudo su - postgres
createuser -P ims

Create the db

sudo su - postgres
createdb -O ims ims

Create the db schema migrations (table data must exist in data/*.dbf)

ruby bin/migrations.rb

Fix the created migrations

sed -i -e 's/:datetime$/DateTime/' migrate/*.rb
sed -i -e 's/:binary$/:bytea/' migrate/*.rb

Migrate the schema

sequel -m ./migrate postgres://ims:<password>@localhost/ims

Import the data

ruby bin/import_data.rb

Generate new models.py (if needed)

  • run from ims/ims
python manage.py inspectdb > reports/models.py

Run Django server and access report

  • run from ims/ims
python manage.py runserver

About

ims data warehouse

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 79.0%
  • Ruby 20.7%
  • HTML 0.3%