Git Product home page Git Product logo

accounting-apideck's Introduction

Accounting - Integrate accounting data with Apideck

Logo

A sample project for viewing and managing accounting data with the Apideck Accounting API.

The Accounting API is a single API to push and query accounting data from +5 connectors. In this sample project, we use the Apideck Node SDK to create a accounting tool that allows you to manage invoices and customers from multiple services (e.g., QuickBooks, MYOB, Xero, etc.)

Getting started

Requirements

  • An Apideck account: You can sign up for an Apideck account here: https://app.apideck.com/signup
  • Apideck Application ID: Available in your Apideck dashboard.
  • Apideck API Key: Available in your Apideck dashboard.

Installing the sample

This project uses the Accounting API with the Node SDK. Visit https://developers.apideck.com/apis/accounting/reference for documentation of the API and https://github.com/apideck-libraries/apideck-node for documentation about the SDK.

Step 1: Enable the accounting connectors

Login to Apideck and enable the accounting connectors you would like to make available to your customers.

You can find the overview of accounting connectors here: https://platform.apideck.com/configuration/accounting.

Step 2: Update your environment variables

  • Copy .env.example and create a .env.local file
  • Add your API key: API_KEY=<your-api-key>
  • Add your Application ID: APP_ID=<your-app-id>
  • Your env should also include NEXT_PUBLIC_API_URL=https://unify.apideck.com

Note: You can find your credentials in the admin: https://platform.apideck.com/configuration/api-keys

Step 3: Install dependencies

  • Install dependencies with yarn or npm install
  • Run the development server with yarn dev or npm run dev
  • Visit http://localhost:3000/ to see if it's running. If you haven't configured any integrations you will see a message.

Step 4: Create a session and add connections

You need to create a Vault session and add/configure at least one accounting connection. Use the button on the /invalid-session route to create a test session for a specific consumer (by passing the consumer ID). After creating a session you can click the integrations dropdown in the sidebar to select a connector. Make sure you have the Accounting connectors enabled in the admin: https://platform.apideck.com/configuration/accounting.

You should now be able to load and manage the invoices, customers, and more of the connections you have configured.

Commands

yarn dev

Runs next dev which starts the app in development mode.
Open http://localhost:3000 to view it in the browser.

yarn build

Runs next build which builds the application for production usage

yarn start

Runs next start which starts a Next.js production server

yarn lint

Runs the eslint command for all files with the js, ts, jsx, and tsx extensions. See the .eslint.json file for all configuration settings.

yarn lint:fix

Runs the eslint command with the --fix flag which tries to automatically fix linting problems.

yarn lint:cache

Runs the eslint command with the --cache flag which only checks the changed files.

yarn lint:format

Runs Prettier which formats all files inside the src directory based on the configuration set inside the .prettierrc file.

yarn type-check

Runs the tsc command to compile the project and check if it has type errors.

yarn test

Runs the jest command which runs all tests

yarn test:watch

Runs the jest command with --watch flag which runs all tests in watch mode

yarn test:coverage

Runs the jest command with --coverage flag which indicates that test coverage information should be collected and reported in the output.

Commit hooks

This project uses husky and lint-staged to run linters against staged git files on commit.

Pre-commit

Before each commit we run eslint and prettier on all staged files.

Pre-push

Before each push to the repository we run jest to check if all tests are passing.

Resources

To learn more, take a look at the following resources:

accounting-apideck's People

Contributors

dependabot[bot] avatar jakeprins 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.