Skip to content

recast-hep/recast-flask-frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

208a2af · Aug 12, 2017
Aug 11, 2017
Mar 1, 2016
May 27, 2016
Apr 26, 2016
Apr 20, 2017
Apr 20, 2017
Jun 23, 2015
Feb 5, 2016
Aug 15, 2015
Aug 15, 2015
Apr 20, 2017
May 31, 2016
May 31, 2016
Aug 16, 2016
May 27, 2016
Feb 19, 2016
Jul 29, 2016
Apr 25, 2016
Aug 12, 2017

Repository files navigation

Build Status

recast-newfrontend

attempt at a new frontend for RECAST live at: http://recast-frontend.herokuapp.com/

#instructions

virtualenv venv
source venv/bin/activate
git clone git@github.com:lukasheinrich/recast-newfrontend.git
cd recast-newfrontend
pip install -e . --process-dependency-links

go to runarea

create db

recast-frontend-admin create_db --config myconfig.yaml

add some entries (models and db are provided as local vars in IPython session)

recast-frontend-admin dbshell --config myconfig.yaml

run server

recast-frontend server --config myconfig.yaml

run redis

redis-server

run async worker

recast-frontend celery --config ../runserver/myconfig.yaml

run REST API server

recast-frontend rest_api --config ../runserver/myconfig.yaml

deploying on Heroku

mv Procfile.<x> Procfile 
git add Procfile
git commit -m 'bla'
git push heroku master

##Docker instructions

 docker-compose build
 docker-compose up -d

create database

docker-compose run recastfrontend recast-frontend-admin create_db

fill database with dummy data

 docker-compose run recastfrontend recast-frontend fill_db