Skip to content

Accounting assistant tool. Optimized for free hosting on Netlify and database on PlanetScale.

License

Notifications You must be signed in to change notification settings

reesemartin/accountant

Repository files navigation

Accountant

Accounting assistant tool monorepo. Optimized for free hosting on Netlify. You will need a relational database for storing your data as well.

Packages

Server UI

Installation

node

Requirements: Depending on your preferred node manager, set the required node version. NodeJS (v.20.10.0). If you're using nvm, run nvm use to ensure you're using the same Node version in local and in your lambda's runtime.

nvm use

If you haven't already installed yarn then corepack enable

yarn

Environment variables

Create a .env.local file in the root of the project. Replace local with the environment you intend to run local or production. Add the following variables as needed:

Name Package Description Default
DATABASE_URL SERVER Url containing the user, host, port, and password of the database
JWT_SECRET SERVER Secret used to sign JWT tokens
LOG_QUERIES SERVER Log all queries to the console false
REACT_APP_API_URL UI Url for the running instance of the server package http://localhost:3001
REFRESH_JWT_SECRET SERVER Secret used to sign refresh JWT tokens

Running the app

yarn prisma:gen

In separate terminals run:

yarn dev:server
yarn dev:ui

Your app is now running on http://localhost:3000 with server api accessible at http://localhost:3001.

Contributing

Commits

This repository enforces Conventional Commits.

Commits should be in the format of type: what you did for example:

  • feat: added unicorn animation
  • docs: updated readme with commit example.

Here is a decent rundown of possible types: conventional-commit-types

Deployment

Netlify

If deploying to netlify, a netlify.toml file has been included to handle the build and deployment process. Connect your repository to Netlify for automated deployment. The only thing you need to do is add the environmental variables listed above to your netlify site.

Todo

About

Accounting assistant tool. Optimized for free hosting on Netlify and database on PlanetScale.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published