| layout | default |
|---|---|
| parent | For developers |
| title | Installation |
| nav_order | 1 |
Download the latest stable release https://github.com/lnbits/lnbits/releases
The application uses Pipenv to manage Python packages. While in development, you will need to install all dependencies:
$ pipenv shell
$ pipenv install --devIf any of the modules fails to install, try checking and upgrading your setupTool module.
pip install -U setuptools
If you wish to use a version of Python higher than 3.7:
$ pipenv --python 3.8 install --devYou will need to copy .env.example to .env, then set variables there.
You might also need to install additional packages, depending on the backend wallet you use.
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 for an excellent way of spinning up a Lightning Network dev environment.
LNbits uses Quart as an application server. Before running the server for the first time, make sure to create the data folder:
$ mkdir dataTo then run the server, use:
$ pipenv run python -m lnbitsNote: You'll need to use https for some endpoints and/or extensions. You can use ngrok for that. Follow the installation instructions on the website and when it's all set you can run:
$ ./nrok http 5000this will give you an https tunnel for the localhost, use that URL for navigating to LNBits.
The frontend uses Vue.js and Quasar.
