Skip to content

Commit

Permalink
Merge pull request #1 from TheMhv/nostr
Browse files Browse the repository at this point in the history
Feat: The app now run fully on the Nostr protocol
  • Loading branch information
TheMhv authored Oct 8, 2024
2 parents 933be93 + 8b3dcf4 commit 690fbd4
Show file tree
Hide file tree
Showing 20 changed files with 1,321 additions and 238 deletions.
7 changes: 5 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
RVC_API_HOST=127.0.0.1
RVC_API_PORT=8000
# For Models, you can separe strings by ','. Example:
# MODELS="model,model2,model3"

MAX_TEXT_LENGTH=200
MIN_SATOSHI_QNT=10
32 changes: 21 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,40 @@ Enable TTS messages with voice models in your live stream using payments on Ligh

## Instalation

>#### You will need a configured and active [LiveSatoshi-Server](https://github.com/TheMhv/LiveSatoshi-Server) to run this project.
* First, install the packages:

```bash
$ npm install
```

* Create the `.env` file:
### Config your .env

> you can copy from `.env.example`:
> ```bash
> $ cp .env.example .env
> ```
Copy the example .env
```bash
$ cp .env.example .env
```

* Set the `RVC_API_HOST` and `RVC_API_HOST` variables to the address of your [LiveSatoshi-Server](https://github.com/TheMhv/LiveSatoshi-Server)
Change values according to your preference.

* Then, run the development server:
## Usage

* You can run the development server on localhost:
```bash
$ npm run dev
```

Open `http://localhost:3000` with your browser to see the result.

## Customization
## Deploy

For deploy, first you need to build:
```bash
$ npm run build
```

Then, start the server:
```bash
$ npm run start
```

If you want to customize the payment page, feel free to edit the `src/app/page.tsx` file
And run the [widget project](https://github.com/TheMhv/LiveSatoshi-Server).
10 changes: 9 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
images: {
remotePatterns: [
{
hostname: '**',
},
],
}
};

export default nextConfig;
Loading

0 comments on commit 690fbd4

Please sign in to comment.