Skip to content

An 💰 Expense Tracking App Made using React ⚛️ , Firebase for storage and authentication

License

Notifications You must be signed in to change notification settings

kisyok/expense-manager-react

 
 

Repository files navigation

A Simple Expense Manager 💵

UM STUDENT NEW UPDATED SOFTWARE MAINTENANCE AND EVOLUTION PROJECT

New Hosting Link : Updated Expense Manager

DEMO Account

In case you need to have a quick look at the app without creating an account, use the below credentials

Click Here For Demo

Username : [email protected] password : test123456

SCREENSHOTS

Mobile Views

Mobile Screens

Night Mode Home Page

Night Mode Home

Month View Page Night Mode

Night Mode Month

Daily View Night Mode

Daily View

Statistics Night Mode

Statistics

Saving Goals Night Mode

Savings

Settings Night Mode

Settings

Filter Night Mode

Filter Page

Home Page Day Mode

Home Page

Monthly View Day Mode

Monthly View

Daily View Day Mode

Daily View

Statistics Day Mode

Statistics

Loan Page Day Mode

Loan Page

Saving Goals Day Mode

Savings

Settings Day Mode

Settings

Login Screen

Login Page

Calendar Component

Calendar Component

SETUP

1. Setting Up Firebase

  • Create a firebase account

  • Create a new firebase project

    Add Firebase Project Add Firebase Project Add Firebase Project

  • From the console, expand 'Build' and select Firestore Database and follow the steps to setup the database

    Create Cloud Firestore Create Cloud Firestore Create Cloud Firestore

  • change database rules to

    rules_version = '2';
    service cloud.firestore {
      match /databases/{database}/documents {
        match /expenseTable/{userId} {
          allow read, write: if request.auth.uid == userId;
          match /{document=**} {
            allow read, write: if request.auth.uid == userId;
          }
        }
        match /savingsTable/{userId} {
          allow read, write: if request.auth.uid == userId;
          match /{document=**} {
            allow read, write: if request.auth.uid == userId;
          }
        }
        match /loanTable/{userId} {
          allow read, write: if request.auth.uid == userId;
          match /{document=**} {
            allow read, write: if request.auth.uid == userId;
          }
        }
        match /settings/{userId} {
          allow read, write: if request.auth.uid == userId;
          match /{document=**} {
            allow read, write: if request.auth.uid == userId;
          }
        }
        match /users/{userId} {
          allow read, write: if request.auth.uid == userId;
          match /{document=**} {
            allow read, write: if request.auth.uid == userId;
          }
        }
        match /defaultCategories/{userId} {
          allow read, write: if request.auth.uid == userId;
          match /{document=**} {
            allow read, write: if request.auth.uid == userId;
          }
        }
      }
    }
    
  • Now lets add the app in firebase by going to Settings -> Project Settings and clicking on the Web App under 'Your Apps' Adding the app Adding the app

  • Now Lets add the config in ./src/firebase/firebase.js lets add the config

  • OPTIONAL_STEP : If you're hosting this app somewhere make sure the api key comes from .env.local as environment variable, doing this does not expose yor api-key , and do not commit this file to github , add this in .gitignore # api Keys *.env

    create a file named .env.local in root folder and add your firebase api key here

    REACT_APP_FIREBASE_API_KEY = "your-api-key-here" .env.local

  • From Build -> Authentication, enable Google Authentication and Email Authentication , Feel Free to add other authentication methods and setup accordingly Enable Google Authentication

  • Finally we need to set up the API-Key for currency converter , which is needed for travel mode.

    • Head over to currencyconverterapi.com

    • create your API-KEY

    • Add this in .env.local as a environment variable

      REACT_APP_FREE_CURRENCY_CONVERTER_API_KEY = "your-api-key-here"

  1. Setup Repo Locally

    git clone https://github.com/YogeshPrasanna/expense-manager-react.git

npm install

  This will install all the required packages and dependencies to run the app.

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

npm run eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Supported Browsers

By default, the generated project uses the latest version of React.

You can refer to the React documentation for more information about supported browsers.

About

An 💰 Expense Tracking App Made using React ⚛️ , Firebase for storage and authentication

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.1%
  • CSS 6.5%
  • HTML 0.4%