https://github.com/yottahmd/world-miniapp
https://github.com/yottahmd/world-miniapp
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yottahmd/world-miniapp
- Owner: yottahmd
- Created: 2024-10-18T09:43:02.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-12-09T00:56:44.000Z (10 months ago)
- Last Synced: 2025-07-19T00:33:27.108Z (3 months ago)
- Language: TypeScript
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React example of minikit
Apart from a frontend, you'll need a backend, this template contains an example of that as well
## To run, install:
- deps, `cd frontend;pnpm i;cd -;cd backend;pnpm i`
- ngrok - Create a free ngrok account, follow the official [docs](https://ngrok.com/docs/getting-started/)
- nginx - use you favorite package manager :)### nginx setup
To serve multiple localhost applications through a single ngrok tunnel (only one available for free-tier users), you can use nginx as a reverse proxy. Follow the steps below to set it up:
### Run nginx
Use the config provided in the root of this repo
`sudo nginx -c full/path/to/this/repo/nginx.conf`
or, if you run the command from the root dir
`sudo nginx -c $(pwd)/nginx.conf`To stop nginx run `sudo nginx -s stop`
### Tunnel through Ngrok
`ngrok http 8080`
The port doesn't matter, make sure it's the `listen` one from nginx config