Giter Club home page Giter Club logo

backupapi's Introduction

Backup API

This Backup API let's you upload and store images from your computer to a cloud service like Google Photos. You can use this to Backup Photos from your Computer.

Getting Started

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.

Prerequisites

This project is based on Flask and Python 2.7.x. The Backup API is made to run on a server. It assumes a setup like the one used at uberspace.de, i.e. CentOS 6 or higher, Apache 2 and FastCGI.

Install on your local machine

However, you can also run it locally. To prepare for installation, make sure, you have at least Python 2.7 and pip up and running!

On Windows, download the latest version of Python 2.7 and install it. Make sure to set your PATH variable accordingly!

If you need help on Windows, you will find more information in the [Python 2 Installation guide][How To Install Python 2.7.md].

On macOS and most Linux, python is pre-installed. There is no need to install anything as a prerequisite.

Installing

Install on any server or local machine

Bare in mind that the Backup API was written with a uberspace server in mind. This means, it assumes Apache 2 and FastCGI.

You may have to customize the API to fit your needs if not using uberspace.

It should be sufficient to change the script/backup.fcgi.

Install on a uberspace Server

Download the Backup API and extract:

[jasmin@fornax ~]$ url="`curl -s https://api.github.com/repos/michagrandel/Python-Pre-Setup/releases/latest | grep tarball_url | cut -d '"' -f 4`"
[jasmin@fornax ~]$ wget $url -O BackupAPI.tar
[jasmin@fornax ~]$ tar -xvf BackupAPI.tar > name.txt
[jasmin@fornax ~]$ mv $(head -n 1 "name.txt") BackupAPI
[jasmin@fornax ~]$ rm BackupAPI.tar name.txt

Install the python module:

[jasmin@fornax ~]$ cd ~/BackupAPI 
[jasmin@fornax BackupAPI]$ python2.7 setup.py install

Copy the content of the script directory into ~/fcgi-bin:

[jasmin@fornax ~]$ cp ~/BackupAPI/script/* ~/fcgi-bin/

You are ready!

Running the tests

If you like to run the tests, just open a terminal in the project directory and run:

python -m unittest discover -s ~/BackupAPI/test -p "*_test.py"

Built With

  • Dropwizard - The web framework used
  • Maven - Dependency Management
  • ROME - Used to generate RSS Feeds

Contributing

First of all: Thank you very kindly for your interest in contributing to our code!

Please take a moment and read CONTRIBUTING.md to get you started!

Versioning

We use SemVer for versioning. For the versions available, see the releases on this repository.

Authors

  • Micha Grandel - Author and maintainer - Github

We thank all of our contributors, who participated in this project.

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details

backupapi's People

Contributors

michagrandel avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.