Skip to content

Commit

Permalink
feat: SQLite as a datastore
Browse files Browse the repository at this point in the history
  • Loading branch information
notTanveer committed Aug 31, 2024
1 parent bd22349 commit 6041eee
Show file tree
Hide file tree
Showing 11 changed files with 1,268 additions and 106 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ lerna-debug.log*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/extensions.json

# misc
/.silent-pay-indexer
28 changes: 1 addition & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,36 +70,10 @@ Read more about silent payments in [BIP 352](https://github.com/bitcoin/bips/pul
$ cp config.yaml test.config.yaml
```

- Set the necessary environment variables (e.g., database connection, provider type, app port, etc.).
- Set the necessary environment variables (e.g., provider type, app port, etc.).

### :rocket: Running the Application

1. Start Postgres

```bash
$ cd dev
$ docker compose up -d
```

2. Start App
$ cd config
$ cp config.yaml test.config.yaml

````
- Set the necessary environment variables (e.g., database connection, provider type, app port, etc.).
### :rocket: Running the Application
1. Start Postgres
```bash
$ cd dev
$ docker compose up -d
````

2. Start App

```bash
$ npm run start:dev
```
Expand Down
6 changes: 1 addition & 5 deletions config/config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
db:
host: <host>
port: <port>
username: <username>
password: <password>
databaseName: silent-pay-indexer
path: ~/.silent-pay-indexer/db/database.sqlite
synchronize: false
app:
port: <port>
Expand Down
6 changes: 1 addition & 5 deletions config/dev.config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
db:
host: localhost
port: 5432
username: root
password: password
databaseName: silent-pay-indexer
path: ./.silent-pay-indexer/db/database.sqlite
synchronize: true
app:
port: 3000
Expand Down
13 changes: 0 additions & 13 deletions dev/docker-compose.yaml

This file was deleted.

Loading

0 comments on commit 6041eee

Please sign in to comment.