The App provides a web interface to the python package, effectively compressing and reformatting NMR spectra into JSON formats. The App also stores users' spectra in a database along with their processing history. Also, the App collects all plugins from the python package and transfers them to the client-side, where they are rendered as GUI.
Install python 2.7 and pip package manager.
From the terminal console, install NMRPro python package using the command:
pip install nmrpro
On Windows, from the command prompt:
python -m pip install nmrpro
Install the django-nmrpro App using the command:
pip install django-nmrpro
On Windows:
python -m pip install django-nmrpro
- pip command automatically installs all necessary package dependencies.
- There is no need to install SpecdrawJS separately since it is included in the Django App.
Once the Django App is installed, the user can integrate it into an existing Django project. To summarize the integration process, briefly:
If you do not have an existing Django project, first create one by following this tutorial.
In
settings.py
, add django_nmpro to yourINSTALLED_APPS
.In
urls.py
, add the following patternurl(r'^', include('django_nmrpro.urls')),
.From the terminal console (command prompt on Windows), navigate to the project home directory and run the web server using the command:
python manage.py migrate
Run the server using the command:
python manage.py runserver
To make sure that installation is successful, visit the URL http://127.0.0.1:8000/nmrpro_test/, which should display 5 spectra from the Coffees dataset.