{"id":16772469,"url":"https://github.com/nitins87/expense-manager-app","last_synced_at":"2026-04-13T03:02:22.966Z","repository":{"id":214177726,"uuid":"735883858","full_name":"NitinS87/expense-manager-app","owner":"NitinS87","description":"Expense Manager Application","archived":false,"fork":false,"pushed_at":"2023-12-26T11:12:37.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-16T16:39:16.126Z","etag":null,"topics":["docker","docker-compose","java","jpa-hibernate","maven","mysql-database","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","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/NitinS87.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-26T10:58:57.000Z","updated_at":"2023-12-26T11:17:53.000Z","dependencies_parsed_at":"2023-12-26T12:53:57.077Z","dependency_job_id":null,"html_url":"https://github.com/NitinS87/expense-manager-app","commit_stats":null,"previous_names":["nitins87/expense-manager-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NitinS87/expense-manager-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NitinS87%2Fexpense-manager-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NitinS87%2Fexpense-manager-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NitinS87%2Fexpense-manager-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NitinS87%2Fexpense-manager-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NitinS87","download_url":"https://codeload.github.com/NitinS87/expense-manager-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NitinS87%2Fexpense-manager-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269366446,"owners_count":24405237,"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","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["docker","docker-compose","java","jpa-hibernate","maven","mysql-database","spring-boot"],"created_at":"2024-10-13T06:42:49.905Z","updated_at":"2025-10-19T07:11:07.497Z","avatar_url":"https://github.com/NitinS87.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Expense Manager App\n\nThis is a Spring Boot application for managing expenses.\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.\n\n### Prerequisites\n\n- Java 8 or higher\n- Maven\n- Docker\n- MySQL\n\n### Installing\n\n1. Clone the repository\n\n```sh\ngit clone https://github.com/NitinS87/expense-manager-app.git\n```\n\n2. Navigate to the project directory\n\n```sh\ncd expense-manager-app\n```\n\n3. Build the project\n\n```sh\nmvn clean install\n```\n\n4. Run the application\n\n```sh\nmvn spring-boot:run\n```\n\n5. Access the application\n\n```sh\nhttp://localhost:8080\n```\n\nDatabase Configuration\nIn src/main/resources/application.properties, set the following:\n\n```sh\nspring.datasource.url=jdbc:mysql://mysql:3306/expense\nspring.datasource.username=root\nspring.datasource.password=root\nspring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver\nspring.jpa.hibernate.ddl-auto=update\nspring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQLDialect\n\nlogging.level.org.springframework.web=DEBUG\nlogging.level.org.hibernate=ERROR\n\nserver.port=8080\n```\n\nReplace localhost:3306, root, and root with your MySQL host, username, and password respectively.\n\n## API Endpoints\n\n### Expense\n\n| Method | Endpoint       | Description          |\n| ------ | -------------- | -------------------- |\n| POST   | /expenses      | Create a new expense |\n| GET    | /expenses      | Get all expenses     |\n| GET    | /expenses/{id} | Get an expense by id |\n| PUT    | /expenses/{id} | Update an expense    |\n| DELETE | /expenses/{id} | Delete an expense    |\n\n### Create Expense\n\n```sh\nPOST /expenses\n```\n\nRequest Body\n\n```sh\n{\n    \"name\": \"college\",\n    \"cost\": 2000000,\n    \"date\": \"2002-06-20\",\n    \"color\": \"red\",\n    \"url\": \"hey!\",\n    \"remarks\": \"college fees\"\n}\n```\n\nResponse Body\n\n```sh\n{\n    \"id\": 1,\n    \"name\": \"college\",\n    \"cost\": 2000000,\n    \"date\": \"2002-06-20T00:00:00.000+00:00\",\n    \"color\": \"red\",\n    \"url\": \"hey!\",\n    \"remarks\": \"college fees\"\n}\n```\n\n### Get All Expenses\n\n```sh\nGET /expenses\n```\n\nResponse Body\n\n```sh\n[\n    {\n        \"id\": 1,\n        \"name\": \"college\",\n        \"cost\": 2000000,\n        \"date\": \"2002-06-20T00:00:00.000+00:00\",\n        \"color\": \"red\",\n        \"url\": \"hey!\",\n        \"remarks\": \"college fees\"\n    },\n    {\n        \"id\": 2,\n        \"name\": \"car\",\n        \"cost\": 2000000,\n        \"date\": \"2002-06-20T00:00:00.000+00:00\",\n        \"color\": \"red\",\n        \"url\": \"hey!\",\n        \"remarks\": \"car fees\"\n    }\n]\n```\n\n### Get Expense By Id\n\n```sh\nGET /expenses/{id}\n```\n\nResponse Body\n\n```sh\n{\n    \"id\": 1,\n    \"name\": \"college\",\n    \"cost\": 2000000,\n    \"date\": \"2002-06-20T00:00:00.000+00:00\",\n    \"color\": \"red\",\n    \"url\": \"hey!\",\n    \"remarks\": \"college fees\"\n}\n```\n\n### Update Expense\n\n```sh\nPUT /expenses/{id}\n```\n\nRequest Body\n\n```sh\n{\n    \"name\": \"college\",\n    \"cost\": 2000000,\n    \"date\": \"2002-06-20\",\n    \"color\": \"red\",\n    \"url\": \"hey!\",\n    \"remarks\": \"college fees\"\n}\n```\n\nResponse Body\n\n```sh\n{\n    \"id\": 1,\n    \"name\": \"college\",\n    \"cost\": 2000000,\n    \"date\": \"2002-06-20T00:00:00.000+00:00\",\n    \"color\": \"red\",\n    \"url\": \"hey!\",\n    \"remarks\": \"college fees\"\n}\n```\n\n### Delete Expense\n\n```sh\nDELETE /expenses/{id}\n```\n\nResponse Body\n\n```sh\n{\n    \"id\": 1,\n    \"name\": \"college\",\n    \"cost\": 2000000,\n    \"date\": \"2002-06-20T00:00:00.000+00:00\",\n    \"color\": \"red\",\n    \"url\": \"hey!\",\n    \"remarks\": \"college fees\"\n}\n```\n\n## Built With\n\n- [Spring Boot](https://spring.io/projects/spring-boot) - The web framework used\n- [Maven](https://maven.apache.org/) - Dependency Management\n- [MySQL](https://www.mysql.com/) - Database\n- [Docker](https://www.docker.com/) - Containerization\n\n## Authors\n\n- **Nitin Sharma** - [NitinS87](https://github.com/NitinS87)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitins87%2Fexpense-manager-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitins87%2Fexpense-manager-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitins87%2Fexpense-manager-app/lists"}