Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.
/ pfp Public archive

a personal finance app, focused on projections, written in Rust and React

Notifications You must be signed in to change notification settings

ucfinancegroup/pfp

Repository files navigation

pfp

Getting Started

Install docker.io, docker-compose, rustup.

For Development, in the root of the repo run:

$ sudo docker-compose -f docker-compose.yml up --build

This builds dev containers. The rust container watches for changes and does not need to be rebuilt while up.

To clean up the docker stuff when you're done:

$ sudo docker-compose -f docker-compose.yml down

Development

The development frontend client is hosted on https://localhost:8888, which is proxied through Nginx.

To test API routes on a local development server, omit the /api/ in the route address. /api/ will need to be included when accessing the deployed dev server.

When testing Plaid in Sandbox mode, use the following credentials when logging into institutions:

username: user_good
password: pass_good
pin: credential_good (when required)

To run the backend locally:

cargo run --features development --bin api

Environment Variables

For development, the server needs some configuration variables at runtime (e.g., database url). Put these in a config.json file inside the server directory. Follow the format of config.sample.json

Generating Types:

Frontend

We need some specific options that the Swagger editor doesn't allow us to control, so we must run openapi-generator locally. Install from: https://github.com/OpenAPITools/openapi-generator (e.g. npm install @openapitools/openapi-generator-cli -g )

npx @openapitools/openapi-generator-cli generate -g typescript-fetch -i api.yaml -o ./client/src/api -c client/apiconfig.json

About

a personal finance app, focused on projections, written in Rust and React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published