Skip to content

matcs06/CreateMobileLink-React

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openmobile: Create Mobile Link

This is a simple lib to generate a qrcode with the link of your local React JS or any other framework, like View, Angular, that you can open on you phone to test.

1 - To install you first have to use: yarn add openmobile -D or npm i openmobile --save-dev

2 - Add it to you main package.json script: "scripts":{"openmobile": "openmobile"}

3 - Run on your command line the script, passing the port of where your app is runing(If it is running on port 3000, you dont need to inform the port on command line)

Mobile link qracode

4 - Use your cellphone camera on the qrcode and it will give you the link of where you local app is running

If you are using VITE

Just add the --host flag in the "dev" script in you package.json: "dev": "vite --host"

vite-flag

If you are using NEXJS 13 and higher

Just add the "next" flag in you terminal command: "yarn openmobile nextjs"

nextjs-flag

If you want to open it directly to a page from the QRCode

Just pass the page route after the port, EG: "yarn openmobile 3000/admin/app"

page-flag

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published