{"id":16979536,"url":"https://github.com/smallpaes/expense-tracker","last_synced_at":"2025-04-12T01:42:48.457Z","repository":{"id":35400640,"uuid":"195509191","full_name":"smallpaes/expense-tracker","owner":"smallpaes","description":"A practical web application built with Node.js, Express, and MongoDB for you to readily record, view, and manage your expense with an account: Create, view, edit, delete, filter expenses are as easy as pie 👉","archived":false,"fork":false,"pushed_at":"2023-11-09T16:45:01.000Z","size":12768,"stargazers_count":11,"open_issues_count":11,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-25T21:22:35.178Z","etag":null,"topics":["chart","chartjs","crud","csurf","expense-tracker","express-handlebars","express-js","express-validator","facebook-login","heroku","mongodb","mongoose","nodejs","nodemailer","passportjs","password-reset","sendgrid","sendgrid-api"],"latest_commit_sha":null,"homepage":"https://boiling-beach-19178.herokuapp.com/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smallpaes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-06T07:06:04.000Z","updated_at":"2025-02-06T18:01:15.000Z","dependencies_parsed_at":"2023-01-15T20:15:39.477Z","dependency_job_id":null,"html_url":"https://github.com/smallpaes/expense-tracker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallpaes%2Fexpense-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallpaes%2Fexpense-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallpaes%2Fexpense-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallpaes%2Fexpense-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smallpaes","download_url":"https://codeload.github.com/smallpaes/expense-tracker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505810,"owners_count":21115353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chart","chartjs","crud","csurf","expense-tracker","express-handlebars","express-js","express-validator","facebook-login","heroku","mongodb","mongoose","nodejs","nodemailer","passportjs","password-reset","sendgrid","sendgrid-api"],"created_at":"2024-10-14T01:46:06.526Z","updated_at":"2025-04-12T01:42:48.431Z","avatar_url":"https://github.com/smallpaes.png","language":"CSS","readme":"# Expense Tracker 💰\nA practical web application built with Node.js, Express, and MongoDB for you to readily record, view, and manage your expense with an account: Create, view, edit, delete, filter expenses are as easy as pie 🥧\n\n\n### Trial in this project 🤠\n**To increase user experience**\n+ [Nodemailer](https://www.npmjs.com/package/nodemailer) is used to send email\n+ [Chart.js](https://www.chartjs.org/) is used to visualize data in beautiful chart\n\n\n**To enhance security**\n+ [csurf](https://www.npmjs.com/package/csurf) is used to prevent CSRF Attacks \n+ [express-validator](https://www.npmjs.com/package/express-validator) is used for server side validation\n+ Utilizing token during password reset process \n\n**Async/Await**\n\n___\n\n## Project First Look\n![Application Screen Shot in GIF](expense-tracker.gif)\n\n\n## Features\n| Functions              | Detail                                            | URL                         |\n| :--------------------: | ------------------------------------------------- | --------------------------- |\n| Sign up for an account | 1. User can sign up an account by inputting name, email, password\u003cbr\u003e2. User can get a warning message for invalid input format\u003cbr\u003e3. User can be redirected to login page and receive a warning message for registered account\u003cbr\u003e4. User can receive an email for successful registration | /users/register |\n| Log in with email | 1. User can log in using registered email\u003cbr\u003e2. User can get a warning message for incorrect password or unregistered account | /users/login |\n| Log in with Facebook account | User can log in via Facebook with a Facebook account | /auth/facebook |\n| Reset password | 1. User can choose to reset password by providing email\u003cbr\u003e2. User can receive an email with reset link\u003cbr\u003e3. User can reset email by visiting reset link | /users/reset |\n| Log out | User can log out of an account | /users/logout |\n| View all expenses | 1. User can view expense detail after login\u003cbr\u003e2. User can get an error message when no expense to display after login | / |\n| View total expense | 1. User can see total amount of all expense in number\u003cbr\u003e2. User can see total amount of each category expense on bart chart | / |\n| Create an expense | 1. User can add an expense with related info after login\u003cbr\u003e2. User can get a warning message for invalid input format | /expenses/new |   \n| Edit an expense | User can update detail info of an expense after login | /expenses/edit/:id |\n| Delete an expense | 1. User can delete an expense after login\u003cbr\u003e2. User can receive a warning message before actual delete | /expenses/delete/:id |\n| Filter expenses | 1. User can filter expenses based on month and category after login | /search |\n| Page not found | User can get an error message when travelling to a page not existing | /:any_other_URL |\n\n___\n\n## Installation\nThe following instructions will get you a copy of the project and all the setting needed to run it on your local machine.\n\n\n### Prerequisites\n\n- [npm](https://www.npmjs.com/get-npm)\n- [Node.js v10.16.0](https://nodejs.org/en/download/)\n- [MongoDB v4.0.10](https://www.mongodb.com/download-center/community)\n\n\n### Clone\n\nClone this repository to your local machine\n\n```\n$ git clone https://github.com/smallpaes/expense-tracker.git\n```\n\n\n### Setup\n\n**1. Create an SendGrid \u0026 Facebook account**\n- [https://signup.sendgrid.com/](https://signup.sendgrid.com/)\n- [https://developers.facebook.com/](https://developers.facebook.com/)\n\n**2. Create and get a SendGrid API Key**\n\n```\nDashboard -\u003e Settings -\u003e API Keys -\u003e Create API Key\n```\n\n**3. Create an Facebook App and get the App ID \u0026 Secret**\n\n```\nMy Apps -\u003e Create App -\u003e Scenario: Integrate Facebook Login -\u003e Settings -\u003e Basic\n```\n\n\n**4. Enter the project folder**\n\n```\n$ cd expense-tracker\n```\n\n**5. Install npm packages**\n\n```\n$ npm install\n```\n\n**6. Create .env file**\n\n```\n$ touch .env\n```\n\n**7. Store API Key in .env file and save**\n\n```\nSENDGRID_KEY=\u003cYOUR_SENDGRID_API_KEY\u003e\nFACEBOOK_ID=\u003cYOUR_FACEBOOK_APP_ID\u003e\nFACEBOOK_SECRET=\u003cYOUR_FACEBOOK_APP_SECRET\u003e\nFACEBOOK_CALLBACK=\u003cYOUR_FACEBOOK_REDIRECT_URI\u003e\n```\n\n**8. Import user and expense seeds**\n\n```\n$ npm run seeder\n```\n\n**9. Find the message for successful import**\n\n```\n\u003e db connected!\n\u003e User and record seeds are created\n```\n\n**10. Activate the server**\n\n```\n$ npm run dev\n```\n\n**11. Find the message for successful activation**\n\n```\n\u003e Express is listening on http://localhost:3000\n\u003e mongodb connected!\n```\nYou may visit the application on browser with the URL: http://localhost:3000\n\n___\n\n\n## FAQ\n- **Why didn't I receive an email upon successful registration or password rest?**\n    - They might been marked as spam, kindly check the spam folder in your mailbox.\n\n- **Can I try this app online?**\n    - Yes, kindly visit [https://boiling-beach-19178.herokuapp.com/](https://boiling-beach-19178.herokuapp.com/)\n    \n- **Can I use Facebook to login online?**\n    - No, the App is currently in development mode. However, you can test the function by following the setup instructions.\n\n___\n\n## Authors\n[Mike Huang](https://github.com/smallpaes)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallpaes%2Fexpense-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmallpaes%2Fexpense-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallpaes%2Fexpense-tracker/lists"}