2020-09-03 19:53:22 +02:00
---
layout: default
title: Basic installation
nav_order: 2
---
Basic installation
==================
Download this repo and install the dependencies:
```sh
2020-10-02 14:53:55 -03:00
git clone https://github.com/lnbits/lnbits.git
cd lnbits/
python3 -m venv venv
./venv/bin/pip install -r requirements.txt
cp .env.example .env
./venv/bin/quart assets
./venv/bin/quart migrate
./venv/bin/hypercorn --bind 0.0.0.0:5000 'lnbits.app:create_app()'
2020-09-03 19:53:22 +02:00
```
2020-10-02 14:53:55 -03:00
No you can visit your LNbits at http://localhost:5000/.
2020-09-03 19:53:22 +02:00
2020-10-02 14:53:55 -03:00
Now modify the `.env` file with any settings you prefer and add a proper [funding source ](./wallets.md ) by modifying the value of `LNBITS_BACKEND_WALLET_CLASS` and providing the extra information and credentials related to the chosen funding source.
2020-09-03 19:53:22 +02:00
2020-10-02 14:53:55 -03:00
Then you can run restart it and it will be using the new settings.
2020-09-03 19:53:22 +02:00
2020-10-02 14:53:55 -03:00
You might also need to install additional packages, depending on the chosen backend.
2020-09-03 19:53:22 +02:00
E.g. when you want to use LND you have to run:
```sh
2020-10-03 17:27:55 -03:00
./venv/bin/pip install lndgrpc
2020-09-03 19:53:22 +02:00
```