{"id":16979538,"url":"https://github.com/smallpaes/expense-tracker-mysql","last_synced_at":"2025-08-19T13:31:42.605Z","repository":{"id":35400636,"uuid":"198356827","full_name":"smallpaes/expense-tracker-mysql","owner":"smallpaes","description":"A practical web application built with Node.js, Express, and MySQL 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":"2022-12-10T23:20:41.000Z","size":12941,"stargazers_count":5,"open_issues_count":14,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-15T01:46:08.545Z","etag":null,"topics":["expense-tracker","express-handlebars","expressjs","facebook","facebook-login","mysql","nodejs","passportjs","sendgrid","sequelize"],"latest_commit_sha":null,"homepage":"","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-23T05:16:20.000Z","updated_at":"2024-04-04T16:28:47.000Z","dependencies_parsed_at":"2023-01-15T20:15:36.893Z","dependency_job_id":null,"html_url":"https://github.com/smallpaes/expense-tracker-mysql","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-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallpaes%2Fexpense-tracker-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallpaes%2Fexpense-tracker-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallpaes%2Fexpense-tracker-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smallpaes","download_url":"https://codeload.github.com/smallpaes/expense-tracker-mysql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230355725,"owners_count":18213529,"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":["expense-tracker","express-handlebars","expressjs","facebook","facebook-login","mysql","nodejs","passportjs","sendgrid","sequelize"],"created_at":"2024-10-14T01:46:06.585Z","updated_at":"2024-12-18T23:42:32.673Z","avatar_url":"https://github.com/smallpaes.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Expense Tracker 💰\nA practical web application built with Node.js, Express, and MySQL 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**Re-built with MySQL**\n+ [MySQL](https://www.mysql.com/) is used as DBMS in this version, instead of MongoDB\n+ [Sequelize](https://github.com/sequelize/sequelize) is used as ORM for MySQL\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- [MySQL v8.0.16](https://dev.mysql.com/downloads/mysql/)\n- [MySQL Workbench v8.0.16](https://dev.mysql.com/downloads/workbench/)\n\n\n### Clone\n\nClone this repository to your local machine\n\n```\n$ git clone https://github.com/smallpaes/expense-tracker-mysql.git\n```\n\n### Setup Datebase\n\n**Create and use expense_tracker database via MySQL Workbench**\n\n\u003e Run the following code\n```\ndrop database if exists expense_tracker;\ncreate database expense_tracker;\nuse expense_tracker;\n```\n\n### Setup App\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-mysql\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. Edit password in config.json file**\n\n\u003e /config/config.json\n```\n\"development\": {\n  \"username\": \"root\",\n  \"password\": \"\u003cYOUR_WORKBENCH_PASSWORD\u003e\",\n  \"database\": \"expense_tracker\",\n  \"host\": \"127.0.0.1\",\n  \"dialect\": \"mysql\",\n  \"operatorsAliases\": false\n}\n\n```\n\n**9. Create models**\n\n\u003e run the following code in console\n```\n$ npx sequelize db:migrate\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```\nYou may visit the application on browser with the URL: http://localhost:3000\n\n___\n\n\n## Authors\n[Mike Huang](https://github.com/smallpaes)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallpaes%2Fexpense-tracker-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmallpaes%2Fexpense-tracker-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallpaes%2Fexpense-tracker-mysql/lists"}