Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

fylein/fyle-backup-app

Repository files navigation

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
    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.txtin a python environment of your choice

    1. If you face an error related to mysql_config follow the steps in this 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 to access the application

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published