Skip to content

Project Setup

António Faneca edited this page Nov 22, 2024 · 12 revisions

Starting point

MyFin is a self-hosted solution. That means that in order for you to use the frontends (android or web) you need to first setup and launch your own instance of the API in your own server. You can find instructions on how to do that in the wiki.

Initial Setup

  1. Upload this project into your server (using git clone is the recommended path)
  2. At the root directory, create a new .env file (you can use the provided .env.example as a starting point). There, you need to set the URL endpoint to your API instance.
VITE_MYFIN_BASE_API_URL=https://api.querty.xyz/; # PUT YOUR API INSTANCE BASE URL HERE
  1. Install the dependencies
npm install
  1. Build the app
npm run build
  1. Make the necessary web server changes to set a custom document root for the domain:
<PROJECT_ROOT>/dist

Updating

  1. Update the project files
git pull
  1. Install the dependencies
npm install
  1. Build the app
npm run build
Clone this wiki locally