Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fylein/fyle-backup-app

Multi-tenant self serve application to take backup of Fyle data
https://github.com/fylein/fyle-backup-app

Last synced: about 2 months ago
JSON representation

Multi-tenant self serve application to take backup of Fyle data

Awesome Lists containing this project

README

        

# fyle-backup-app
Multi-tenant self serve application to take backup of Fyle data

### Development setup

1. Fyle App registration (get your client_id and client_secret here)
1. Login to [Fyle](https://app.fyle.in)
2. Goto settings and click on Developers
3. Click on create new app, enter the details and select type as OAuth 2.0
4. For Redirect URI enter
1. 'http://localhost:8000/main/callback/' for development
2. 'https://your_domain/main/callback/' for production
3. 'http://localhost:8000/accounts/fyle/login/callback/' for development
4. 'https://your_domain/accounts/fyle/login/callback/' for production
5. Note down the client_secret and client_id

2. Install the project dependencies by running `pip install -r requirements.txt`in a python environment of your choice
1. If you face an error related to mysql_config follow the steps in [this](https://stackoverflow.com/questions/7475223/mysql-config-not-found-when-installing-mysqldb-python-interface) article
3. Rename the file ```.setup_template.sh``` to ```.setup.sh``` and customize it accordingly
4. Run ```source .setup.sh``` to export the environment variables
5. Run ```python manage.py migrate``` to populate your database
6. Run ```python manage.py createsuperuser``` and follow the instructions to create a superuser
7. Open django-admin and create a new record under Social Applications. Select Fyle as provider and enter your client_secret and client_id. Add our site to the Chosen sites on the bottom.
8. Create a log file at ```/var/log/fyle/fyle_backup.log```
9. Run ```python manage.py runserver``` to start the server on localhost
10. You might want to comment out the FyleJobs section (```apps/backups/views.py```) during development
11. Run ```python manage.py collectstatic``` to collect static files to static_root directory, before deploying onto a Prod server

Visit [http://localhost:8000](http://localhost:8000) to access the application