Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.
/ lesspass-backend Public archive

api server with django rest framework for LessPass password manager

License

Notifications You must be signed in to change notification settings

saalaa/lesspass-backend

Repository files navigation

Build Status

LessPass backend

API server built with the Django REST framework for LessPass password manager.

Dependencies:

  • python 3
  • django rest framework
  • django rest framework jwt
  • djoser
  • postgresql
  • gunicorn

Security considerations

Running this service on a public server without proper HTTPS support presents a huge risk of account information leakage (not just your LessPass account, all your accounts).

Running the tests

$ pip install -r requirements.txt
$ python manage.py test

Note that you might want to do this inside a virtual environment.

Running on Heroku

The simplest is probably to use the following button:

Deploy

But you can do this manually too. First, you should install the Heroku CLI.

Then, create a new Heroku app:

$ heroku create

Configure the domain you'll use to access the service (for example, my-less-pass.com):

$ heroku config:set ALLOWED_HOSTS=my-less-pass.com

Add a PostgreSQL resource to the Heroku app (it doesn't have to be the free plan, please refer to Heroku documentation for alternative plans):

$ heroku addons:create heroku-postgresql:hobby-dev

Deploy the repository to the Heroku app:

$ git push heroku

And finally, initialize the database:

$ heroku run sh init-db.sh

License

This project is licensed under the terms of the GNU GPLv3.

Issues

Report issues on the project page.

About

api server with django rest framework for LessPass password manager

Resources

License

Stars

Watchers

Forks

Packages

No packages published