Finance Tracker is a simple tool to help you manage your personal finances.
Before you begin, ensure you have met the following requirements:
- Node.js: Version 20.11.1 (Download and install Node.js if you haven't already)
- Go: Version 1.22.0 (Download and install Go if you haven't already)
git clone https://github.com/aashish47/finance-tracker.git
Before running the Finance Tracker project, you'll need to set up Supabase for database management and Google Auth for user authentication. Follow these steps to configure Supabase and obtain the necessary keys:
-
Set up Supabase Project and Google Auth:
- Create a Supabase project and enable Google Auth.
- Obtain the Supabase project URL, API key, Google Client ID, and Client Secret.
- Add
http://localhost:3000
as an allowed redirect URL in Supabase Auth settings. (authentication -> url configuration -> site url)
For detailed instructions, refer to the Supabase Authentication Guide.
-
Configure Supabase Database:
- When setting up your Supabase database, ensure to choose connection pooling to session.
- Set the pool size to 35 for optimal performance.
For more information on configuring Supabase database connection pooling, refer to the Supabase Documentation.
-
Seed the database(optional):
- Open the Supabase SQL editor and connect to your project's PostgreSQL database.
- Open the seed.sql file provided in the project
- Copy and paste the SQL queries from seed.sql into the SQL editor and execute them to seed the database.
- In the
frontend
directory, rename.env.local.example
to.env.local
and add the required keys. - In the
backend
directory, rename.env.example
to.env
and add the required keys.
Required keys will be available at project settings -> configuration -> Database and project settings -> configuration -> Api Once you have obtained the necessary keys and configured Supabase and Google Auth, add them to your project's environment variables.
# Install frontend dependencies
cd frontend
npm install
# Run frontend
cd finance-tracker/frontend
npm run dev
# Run backend
cd finance-tracker/backend
go run server.go
Open http://localhost:3000
with your browser to see the result.
Contributions to Finance Tracker are welcome! If you find any bugs or have suggestions for new features, please open an issue or submit a pull request. See CONTRIBUTING.md for more information.
This project is licensed under the MIT License - see the LICENSE file for details.