05 Oct 2015 19:45:36 UTC
- Distribution: Net-PhotoBackup-Server
- Module version: 0.11
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (496 / 2 / 1)
- KwaliteeBus factor: 0
- 50.41% Coverage
- License: perl_5
- Perl: v5.8.1
- Activity24 month
- Download (12.99KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionDAVEWEBB Dave Webband 4 contributors
- Dave Webb.
- Dave Webb
- Stéphane Péchard
- Syohei YOSHIDA
Net::PhotoBackup::Server - perl5 server for https://photobackup.github.io
# Initial setup of server config. photobackup.pl init # Launch server using config. photobackup.pl run
Net::PhotoBackup::Server provides a server and startup script for PhotoBackup Android app. It was developed by reading the API docs and looking at the sourcecode of the bottle and flask python implementations.
Constructor. Any args will be added to $self, overriding any defaults.
Create, or recreate the user's config file. The user will be prompted for the following information: Media root - Directory where the pictures will be stored. Server password - The password to use for all HTTP operations. Server port - Defaults to 8420. Some rudimentary checking will be done for valid input.
Read and write server config file. Returns undef if config file doesn't exist, or doesn't hold all required data. The config will be written to ~/.photobackup in INI format. I'm reading and writing this simple INI file manually rather than using a CPAN module so as to reduce the dependencies.
Launch the PhotoBackup web service using config from the conf file.
Kill any running PhotoBackup web service.
Return the PSGI application subref.
Copyright (C) 2015 Dave Webb.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Dave Webb <firstname.lastname@example.org>
Module Install Instructions
To install Net::PhotoBackup::Server, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Net::PhotoBackup::Server
For more information on module installation, please visit the detailed CPAN module installation guide.