mirror of https://github.com/lukechilds/lnbits.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
690 B
35 lines
690 B
5 years ago
|
---
|
||
|
layout: default
|
||
|
parent: For developers
|
||
|
title: Installation
|
||
|
nav_order: 1
|
||
|
---
|
||
|
|
||
|
|
||
|
Installation
|
||
|
============
|
||
|
|
||
|
LNbits uses [Flask](http://flask.pocoo.org/).
|
||
5 years ago
|
|
||
|
|
||
|
Application dependencies
|
||
|
------------------------
|
||
5 years ago
|
|
||
5 years ago
|
The application uses [Pipenv][pipenv] to manage Python packages.
|
||
5 years ago
|
While in development, you will need to install all dependencies (includes packages like `black` and `flake8`):
|
||
5 years ago
|
|
||
|
$ pipenv shell
|
||
|
$ pipenv install --dev
|
||
|
|
||
5 years ago
|
|
||
5 years ago
|
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
|