Complex rest plugin for workspaces management.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
- Deploy complex rest.
For this plugin, you can get the latest build from Nexus or GitHub Release page:
- Download the archive with the latest build.
- Unpack the archive into
complex_rest/pluginsdirectory. - Create initial records.
- Clone the Git repository
git clone git@github.com:ISGNeuroTeam/complex_rest_dtcd_workspaces.git
- Run the following from inside the repository root (you'll get the same archive as in Nexus):
make pack
- Unpack the archive into
complex_rest/pluginsdirectory. - Create initial records.
If you are a developer, then follow this section.
- Clone the Git repository into
plugin_dev/directory:git clone git@github.com:ISGNeuroTeam/complex_rest_dtcd_workspaces.git
- Copy configuration files from
docs/todtcd_workspaces/with the following command:cp docs/dtcd_workspaces.conf.example dtcd_workspaces/dtcd_workspaces.conf
- Create virtual environment
python -m venv venv
- Activate virtual environment and install the requirements:
source venv/bin/activate pip install -r requirements.txt - Make a symlink for
./dtcd_workspaces/dtcd_workspacesincomplex_rest/pluginsdirectory. - Run custom Django command from project directory to create initial records for Role Model.
python complex_rest/manage.py create_root_records
For deployment we need to get a build archive - see the previous section on how to do that. Then:
- Stop
complex_rest. - Unpack the archive into
complex_rest/pluginsdirectory. - Create initial records.
- Start
complex_rest.
The plugin has create_root_records custom Django command which prepares Role Model tables in the database.
There is a helper script database_init.sh that will set up the database for you.
You can run it from anywhere you like:
./database_init.shRun all tests from project's root directory:
python ./complex_rest/manage.py test \
./plugin_dev/dtcd_workspaces/tests \
--settings=core.settings.test- Django - The web framework used
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Ilia Sagaidak (isagaidak@isgneuro.com)
OT.PLATFORM. License agreement.
- Hat tip to anyone whose code was used
- Inspiration