Skip to main content
Version: 4.x

Desktop/Web

Receipt Wrangler desktop is an Angular application.
Below we'll go through on setting it up in a development environment, and walk through some of the important technologies.

Prerequisites

Setup

  1. Clone the repository https://github.com/Receipt-Wrangler/receipt-wrangler-desktop
  2. Open a terminal and navigate to the root of the project
  3. Run npm install
  4. Run npm run start

Running the application

If no API changes are needed, developers can simply point the API calls to a different backend. This can be done by the following steps:

  1. Open app.module.ts
  2. Modify the baseUrl in the api module to point to somewhere else, https://dev.receiptwrangler.io/api for example.
note

Feel free to dev against https://dev.receiptwrangler.io/api. This is a shared environment for developers to develop against.

warning

If you decide to modify the app.module.ts, the server you are connecting to must be over https due to browser rejecting insecure cross-origin cookies.

Testing

Unit tests are crucial to keeping the application stable during development, refactors, ect. There are quite a few tests in place already, with a pretty solid pattern. Unit tests are also a much appreciated way to contribute to the project, as they are a great way to get familiar with the codebase, and helps promote the health of the application.

To run the tests, simply run npm run test

Important Technologies Used