Setup
Setup for local development
It's recommanded to create a virtual Python environment, but not required. Therefore create and activate it.
$ virtualenv scf_project
$ cd scf_project/
$ source bin/activate
Setup server
Get SCF and install the Python dependencies
$ git clone https://github.com/citationfinder/scholarly_citation_finder.git
$ cd scholarly_citation_finder
$ pip install -r requirements.txt
Migrate the database tables and collect the static files
$ ./manage.py migrate
$ ./manage.py collectstatic
Create a root user
$ ./manage.py createsuperuser
Start Celery
$ celery -A scholarly_citation_finder worker -l info
Finally run the build-in Django server
$ ./manage.py runserver
Setup client
The client is located in the public/client directory. Gulp in combination with Webpack is used to build the client. During development run Gulp to automatically build the project and reload the browser, when you change files
$ cd public/client
$ gulp
Documenation
MkDocs is used for this documentation. Run MkDocs during writing to check the results
$ mkdocs serve
Setup a virtual machine
see Deploy Vagrant