lnbits/docs/devs/installation.md

61 lines
1.3 KiB
Markdown
Raw Normal View History

---
layout: default
parent: For developers
title: Installation
nav_order: 1
---
2020-09-02 12:31:44 +00:00
Installation
============
Download the latest stable release https://github.com/lnbits/lnbits/releases
2020-09-02 12:31:44 +00:00
Application dependencies
------------------------
The application uses [Pipenv][pipenv] to manage Python packages.
While in development, you will need to install all dependencies:
```sh
$ pipenv shell
$ pipenv install --dev
```
2020-06-22 14:15:27 +00:00
If you wish to use a version of Python higher than 3.7:
2020-06-22 14:14:51 +00:00
```sh
$ pipenv --python 3.8 install --dev
```
2020-10-02 17:53:55 +00:00
You will need to copy `.env.example` to `.env`, then set variables there.
![Files](https://i.imgur.com/ri2zOe8.png)
You might also need to install additional packages, depending on the [backend wallet](../guide/wallets.md) you use.
2020-10-13 08:31:53 +00:00
E.g. when you want to use LND you have to `pipenv run pip install lndgrpc` and `pipenv run pip install purerpc`.
Take a look at [Polar][polar] for an excellent way of spinning up a Lightning Network dev environment.
2020-09-02 12:31:44 +00:00
Running the server
------------------
LNbits uses [Quart][quart] as an application server.
```sh
2020-09-04 20:13:10 +00:00
$ pipenv run python -m lnbits
```
Frontend
--------
The frontend uses [Vue.js and Quasar][quasar].
[quart]: https://pgjones.gitlab.io/
[pipenv]: https://pipenv.pypa.io/
[polar]: https://lightningpolar.com/
[quasar]: https://quasar.dev/start/how-to-use-vue