GithubHelp home page GithubHelp logo

sanjay-hercules / mobile-accounting Goto Github PK

View Code? Open in Web Editor NEW

This project forked from frappe/mobile-accounting

0.0 1.0 0.0 1.44 MB

Accounting app for mobile with frappejs-accounting as backend

TypeScript 51.87% HTML 32.48% CSS 10.71% JavaScript 4.94%

mobile-accounting's Introduction

Mobile Accounting

Getting Started

Step 0

Make sure you have frappejs-Accounting setup up and running. If not, follow the guide here

Step 1

Clone this repo

git clone https://github.com/frappe/mobile-accounting

Step 2

Install dependencies

cd mobile-accounting

yarn

Step 3

I assume most of us might be having Android devices, so to run it on android - connect the phone to your PC/Laptop. Make sure you have USB debugging enabled in your device and ADB drivers installed in your PC/Laptop.

# Run this command
ionic cordova run android

# In order to live update code and check it instantly on your device, use
ionic cordova run android --livereload --consoleogs

# If you run into error of universalify package, run the following command and try the above command again
yarn add universalify

Optionally

You can also run it in your web browser using.

ionic serve

This will cause a CORS issue in the web browser. In order to tackle that, goto

frappejs-Accounting > packages > frappejs > server > index.js

# add this line below the require morgan expression
app.use(cors());

Note

There is also a minor change needed in the Accounting package in order to make the login work.

# goto
frappejs-Accounting > packages > accounting > server > index.js

# add this line inside `await server.start`
authConfig: {}

What's Important

If you look in the repo, you'll find a frappe.js file which is the most crucial one. Its responsible for establishing the connection with the frappejs backend. HTTPClient backend has been used for this app.

All that needs to be done is init this connection by providing it a server on app start. It also assigns itself to the window object, so that it can be used seamlessly across any pages that we create.

For reference checkout - ToDo app

mobile-accounting's People

Contributors

zlash65 avatar shivam1708 avatar

Watchers

James Cloos 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.