EveryDatastore Backend Installation

1. Clone EveryDataStoreBackend to your backend project directory:

git clone https://github.com/EveryDataStore/EveryDataStoreBackend.git /var/www/project_directory/

2. Clone all EveryDataStoreBackend submodules in your project directory

cd /var/www/project_directory/
git submodul add https://github.com/EveryDataStore/EveryRESTfulAPI.git
git submodul add https://github.com/EveryDataStore/EveryDefaultFolder.git
git submodul add https://github.com/EveryDataStore/EveryNotifyTemplate.git
git submodul add https://github.com/EveryDataStore/EveryNumbering.git
git submodul add https://github.com/EveryDataStore/EveryTranslator.git
git submodul add https://github.com/EveryDataStore/EveryWidget.git

3. Go to your project directory:

cd /var/www/projectdirectory/


4. Run composer update:

composer update


5. Copy the file .env.example to .env:

cp .env.example .env


6. Open the file .env and edit it:

vi .env

SS_DATABASE_SERVER="localhost"
SS_DATABASE_NAME="Database name"
SS_DATABASE_USERNAME="Database username"
SS_DATABASE_PASSWORD="Database userpassowrd"
SS_DEFAULT_ADMIN_USERNAME="admin"
SS_DEFAULT_ADMIN_PASSWORD="adminpassword"

8. Open the file everydatastore/_config/everydatastore.yml and edit the following settings:

default_member:
  email: 'member@example.com'
    password: 'mypassword'
asset_viewer_member:
  email: 'viewer@example.com'
    password: 'mypassword'
cron_member:
  email: 'cron@example.com'
    password: 'mypassword'
demo_data_file_path: '{path_to_your_project_directory}/everydatastore/demodata/repm.json'
everydatastore_tmp_dir_path: '{path_to_your_project_directory}/tmp'

7. Make the following directories and files writeable and owned by www-data:
- public/assets/
- public/assets/.protected
- public/assets/.htaccess
- public/assets/.protected/.htaccess
- public/_graphql
- .graphql-generated
- silverstripe-cache
- tmp
- log
- log/silverstripe.log

8. Run in your browser the following URL:

http://yourbackendhost/dev/build/?flush=1

9. Log in to the backend:

http://yourbackendhost/admin

10. Go To Admin-Backend:

10.1 Edit your datastore name, configurations, settings.
10.2 Add the users (default_member, asset_viewer_member and cron_member) to the Administrators group.
*** This step is very important to setup your datastore ***

http://yourbackendhost/admin/EveryDataStore


11. Import Demo Data

Run the following URL in your browser to import the demo data:
http://yourbackendhost/dev/tasks/EveryDataStoreTask?action=importDemoData

12. Create cron jobs for EveryDataStore ECM (you can do this part later):

All cron jobs for EveryDataStore ECM are in {path to your project directory}/everydatastore/cron/cronjobs.txt