2020-05-04 15:20:36 +00:00
|
|
|
---
|
|
|
|
layout: default
|
|
|
|
parent: For developers
|
|
|
|
title: Installation
|
|
|
|
nav_order: 1
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
Installation
|
|
|
|
============
|
|
|
|
|
|
|
|
LNbits uses [Flask](http://flask.pocoo.org/).
|
2019-12-13 16:56:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
Application dependencies
|
|
|
|
------------------------
|
2020-05-04 15:20:36 +00:00
|
|
|
|
2019-12-13 16:56:19 +00:00
|
|
|
The application uses [Pipenv][pipenv] to manage Python packages.
|
2020-05-04 15:20:36 +00:00
|
|
|
While in development, you will need to install all dependencies (includes packages like `black` and `flake8`):
|
2019-12-13 16:56:19 +00:00
|
|
|
|
|
|
|
$ pipenv shell
|
|
|
|
$ pipenv install --dev
|
|
|
|
|
2020-05-04 15:20:36 +00:00
|
|
|
|
2019-12-13 16:56:19 +00:00
|
|
|
Running the server
|
|
|
|
------------------
|
|
|
|
|
|
|
|
$ flask run
|
|
|
|
|
|
|
|
There is an environment variable called `FLASK_ENV` that has to be set to `development`
|
|
|
|
if you want to run Flask in debug mode with autoreload
|
|
|
|
|
|
|
|
|
|
|
|
[pipenv]: https://docs.pipenv.org/#install-pipenv-today
|