mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 07:25:19 +02:00
Merge pull request #114 from Neumand/improvement/ngrok-instructions
Add ngrok instructions
This commit is contained in:
commit
179db8462c
3 changed files with 23 additions and 1 deletions
|
@ -14,6 +14,7 @@ NX_NEXTAUTH_URL=http://localhost:4200
|
||||||
# We use ngrok to expose a local development environment to the internet
|
# We use ngrok to expose a local development environment to the internet
|
||||||
# You can sign up for a free account and get an API key at https://ngrok.com
|
# You can sign up for a free account and get an API key at https://ngrok.com
|
||||||
NGROK_AUTH_TOKEN=
|
NGROK_AUTH_TOKEN=
|
||||||
|
NGROK_DOMAIN=
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# DATABASE
|
# DATABASE
|
||||||
|
|
21
README.md
21
README.md
|
@ -67,6 +67,27 @@ yarn prisma:seed
|
||||||
yarn dev
|
yarn dev
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Set Up Ngrok
|
||||||
|
|
||||||
|
External data providers require HTTPS/SSL webhook URLs for sending data.
|
||||||
|
|
||||||
|
To test this locally/during development, you will need to setup `ngrok`.
|
||||||
|
|
||||||
|
1. Visit [ngrok.com](https://ngrok.com/)
|
||||||
|
2. Create a free account
|
||||||
|
3. Visit [this page](https://dashboard.ngrok.com/get-started/your-authtoken) to access your auth token
|
||||||
|
4. Paste it into your `.env` file: `NGROK_AUTH_TOKEN=your_auth_token`
|
||||||
|
|
||||||
|
You should claim your free static domain to avoid needing to change the URL each time you start/stop the server.
|
||||||
|
|
||||||
|
To do so:
|
||||||
|
|
||||||
|
1. Visit the [domains](https://dashboard.ngrok.com/cloud-edge/domains) page
|
||||||
|
2. Click on Create Domain
|
||||||
|
3. Copy the domain and paste it into your `.env` file: `NGROK_DOMAIN=your_domain`
|
||||||
|
|
||||||
|
That's it! As long as you run the project locally using `docker` with `yarn dev:services:all` you'll be good to go.
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
To contribute, please see our [contribution guide](https://github.com/maybe-finance/maybe/blob/main/CONTRIBUTING.md).
|
To contribute, please see our [contribution guide](https://github.com/maybe-finance/maybe/blob/main/CONTRIBUTING.md).
|
||||||
|
|
|
@ -31,7 +31,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 4551:4551
|
- 4551:4551
|
||||||
environment:
|
environment:
|
||||||
- DOMAIN=host.docker.internal
|
- DOMAIN=${NGROK_DOMAIN:-host.docker.internal}
|
||||||
- PORT=3333
|
- PORT=3333
|
||||||
- AUTH_TOKEN=${NGROK_AUTH_TOKEN}
|
- AUTH_TOKEN=${NGROK_AUTH_TOKEN}
|
||||||
- DEBUG=true
|
- DEBUG=true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue