GithubHelp home page GithubHelp logo

mobile_web_app's Introduction

mobile_web_app

Web version of ONE FM mobile app.

Installation guide:

git clone https://github.com/ONE-F-M/mobile_web_app.git

Check the port on which the application is running after executing yarn dev. e.g. Local: http://localhost:5173/ will be shown.

In your frappe/erpnext installation, add the below to bench/sites/[site-name]/site_config.json

"allow_cors": ["http://localhost:5173"]

Update src/main.js line 12 with the correct url and id.

const frappe = new utils.Frappe("url", "id")

After making the above changes to src/main.js, run the below commands.

yarn build
yarn dev

To test the app on a mobile device:

  1. Make sure your machine and mobile device are using the same network.
  2. Download and install ngrok. Follow the instruction on the following link: https://ngrok.com/docs/getting-started/
  3. In your frappe/erpnext installation, modify the "allow_cors" parameter in bench/sites/[site-name]/site_config.json. This should only be done on local machine and never on staging/test-production/production environments.
"allow_cors": ["*"]
  1. Use the steps in the following link to add your local frappe/erpnext server url to be treated as secure origin by the browser. https://stackoverflow.com/a/53388534/6614548 For chrome, you can access by chrome://flags. For edge, you can access by edge://flags.

mobile_web_app's People

Contributors

mymi14s avatar salshai avatar talleyrand333 avatar ks093 avatar

Stargazers

Jamsheer PP avatar  avatar Govind Jangid avatar

Watchers

MohsinAli avatar Jamsheer PP avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.