See the blog post about what it took to port this to Backbone Marionette
- App demo
- Drupal Backend (Same backend as other examples.)
To test it locally:
- Follow the below Installation notes
- If your Drupal site is not running under
http://localhost/todo_restful/www
then inclient/Gruntfile.js
change theapiEndpoint
in line 404 to the correct one - Under
/client/app/
directory executenpm install
- Under
client
directory executenpm install
, and to start the app executegrunt serve
- Add to Drupal's
settings.php
:
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Credentials: true');
header('Access-Control-Allow-Headers: Authorization, access_token, Content-Type');
Warning: you need to setup Drush first or the installation and update scripts will not work.
Clone the project from GitHub.
Copy the example configuration file to config.sh:
$ cp default.config.sh config.sh
Edit the configuration file, fill in the blanks.
Run the install script from within the root of the repository:
$ ./install
You can login automatically when the installation is done. Add the -l argument when you run the install script.
$ ./install -l
Create a vhost for your webserver, point it to the REPOSITORY/ROOT/www
folder.
(Restart/reload your webserver).
Add the local domain to your /etc/hosts
file.
Open the URL in your favorite browser.
You can Reinstall the platform any type by running the install script.
$ ./install
- Delete the /www folder.
- Recreate the /www folder.
- Download and extract all contrib modules, themes & libraries to the proper subfolders of the profile.
- Download and extract Drupal 7 core in the /www folder
- Create an empty sites/default/files directory
- Makes a symlink within the /www/profiles directory to the /todo directory.
- Run the Drupal installer (Drush) using the ToDo profile.
- The install script will not preserve the data located in the sites/default/files directory.
- The install script will clear the database during the installation.
You need to take backups before you run the install script!
It is also possible to upgrade Drupal core and contributed modules and themes without destroying the data in tha database and the sites/default directory.
Run the upgrade script:
$ ./upgrade
You can login automatically when the upgrade is finished. Add the -l argument when you run the upgrade script.
$ ./upgrade -l
- Create a backup of the sites/default folder.
- Delete the /www folder.
- Recreate the /www folder.
- Download and extract all contrib modules, themes & libraries to the proper subfolders of the profile.
- Download and extract Drupal 7 core in the /www folder.
- Makes a symlink within the /www/profiles directory to the /todo 7. directory.
- Restore the backup of the sites/default folder.