A web frontend for Twigs
Find a file
William Brawner ccf1acd21e Fix decimal multiplication weirdness by rounding
There's probably a better way to go about handling this but for now this
is good enough.
2021-11-17 18:00:03 -07:00
.github/workflows Remove explicit repository name for docker builds 2021-02-25 12:04:15 -07:00
.vscode Use bearer instead of basic auth 2021-01-26 21:00:15 -07:00
e2e Update dependencies 2020-06-30 15:13:46 +00:00
src Fix decimal multiplication weirdness by rounding 2021-11-17 18:00:03 -07:00
.editorconfig initial commit 2018-08-27 12:04:01 -05:00
.gitignore Deploy to Firebase (#11) 2018-09-04 10:14:46 -05:00
angular.json Update ng2-currency-mask 2021-06-11 11:12:09 -06:00
captain-definition Add vscode settings for code server 2020-06-30 04:06:44 +00:00
Dockerfile Use docker for deployments 2020-01-29 21:35:43 -07:00
LICENSE Update README and add LICENSE 2021-02-27 06:51:13 -07:00
ngsw-config.json Enable offline usage 2018-08-31 17:56:09 -05:00
package-lock.json Fix transaction title updating 2021-06-20 13:53:07 -06:00
package.json Fix npm scripts for use on Windows 2021-07-08 18:36:10 -06:00
README.md Update README and add LICENSE 2021-02-27 06:51:13 -07:00
tasks.json Add tasks.json 2020-06-30 04:17:15 +00:00
tsconfig.base.json Update ng2-currency-mask 2021-06-11 11:12:09 -06:00
tsconfig.json Update dependencies 2020-06-30 15:13:46 +00:00
tslint.json Update dependencies 2020-06-30 15:13:46 +00:00

Twigs Web Client

Twigs is an open source budgeting app aimed at people who need to share a budget. This project serves as the web front end, and is powered by Angular. The main back end project can be found at wbrawner/twigs-server

Building

You'll need NodeJS and NPM, then run

npm run build

If you would like to tinker with the site and have it hot reload, then run

npm run start

The app will be available at http://localhost:4200

Self-hosting

Eventually the plan is to ship this web app within the JAR for the server, but for now you'll need to run them separately. Before you build the app, be sure to change the apiUrl value in src/environments/environment.prod.ts. Then you can run the following command to get an optimized version of the build for production deployments

npm run package

This will output the app in a folder called dist/twigs, which you can then serve directly with Apache or Nginx or any static file server.

License

Copyright (c) 2021 William Brawner

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.