Paperwork Aims To Be An Open
Paperwork Aims To Be An Open
In addition, you need the "paperwork" user to have full access to this database:
GRANT ALL PRIVILEGES ON paperwork.* TO 'paperwork'@'localhost' IDENTIFIED BY 'paperwork'
WITH GRANT OPTION; FLUSH PRIVILEGES;
With these settings, you won't need to modify the database.php configuration file.
After completing these steps, run the migration jobs, that fill the database:
php artisan migrate
If anything here should fail, it's most likely an authentication/connection issue, so check your
database setup again.
Now, for the last step, make sure that your webserver has the right to create/modify/delete files
within the frontend/app/storage/attachments/, thefrontend/app/storage/cache/,
the frontend/app/storage/logs/ and thefrontend/app/storage/sessions/ folders. Also, be sure to set
the document root (docroot) of your webserver to the folder frontend/public/.
That's pretty much it. From here on, you should be able to access your paperwork instance
through the web.
Upgrading
Upgrading to the latest GIT version of Paperwork is fairly easy. Update your local repository
running git pull, then cd into the frontend/ directory and run php artisan migrate. In most cases
this should work. If you're experiencing issues, you might need to clear the database completely
and re-run the initial installation.
API documentation
The API documentation can be found at docs.paperwork.apiary.io or built using theapiary.apib file
from this repository. It's not yet complete and could change at any time!
Developing
Developing on Paperwork is fairly easy for anyone who's familiar with Laravel 4.
Within frontend/app/ all internal code can be found, including all source LESS and JavaScript files
that are being used to generate the output files that lie
infrontend/public/css/ and frontend/public/js.
If you need to modify the stylesheet or JavaScript, DO NOT TOUCH ANY OF THE FILES
IN frontend/public/, as they will be overwritten by the generator process. Instead, modify the files
in frontend/app/less/ and frontend/app/js/. For building, you'll need Gulp.js.
Switch into frontend directory on a command line and execute the following:
npm install
npm will install all dependencies required through the package.json, so that you'll be able to run
the generator process yourself. For doing so, simply run the command gulp within
your frontend directory.
FAQ
Can I run Paperwork on a shared host environment, where I'm not able
to set frontend/public as document root?
Basically you can. This has nothing to do with Paperwork specifically, though. The foundation
ontop of which Paperwork is built up (Laravel) needs to be reconfigured to support a shared host
environment. Here you can find more info about how to do so.