{"id":15042824,"url":"https://github.com/kapil7982/sunbase","last_synced_at":"2026-04-07T13:31:56.762Z","repository":{"id":250388544,"uuid":"834071486","full_name":"Kapil7982/sunbase","owner":"Kapil7982","description":"This application allows users to manage customers, including adding, editing, deleting, and searching for customer records. The application includes a login system and utilizes JWT tokens for authentication.","archived":false,"fork":false,"pushed_at":"2024-08-04T10:59:49.000Z","size":94,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T13:23:20.097Z","etag":null,"topics":["css","hibernate-jpa","html","java-8","javascript","maven","mysql-database","spring-boot","swagger-ui"],"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/Kapil7982.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-26T11:01:14.000Z","updated_at":"2024-08-04T10:59:52.000Z","dependencies_parsed_at":"2024-07-27T02:28:26.670Z","dependency_job_id":"fa4eeadc-a1ec-46a0-ba83-676b7d0ce66b","html_url":"https://github.com/Kapil7982/sunbase","commit_stats":null,"previous_names":["kapil7982/sunbase"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kapil7982%2Fsunbase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kapil7982%2Fsunbase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kapil7982%2Fsunbase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kapil7982%2Fsunbase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kapil7982","download_url":"https://codeload.github.com/Kapil7982/sunbase/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243451605,"owners_count":20293168,"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":["css","hibernate-jpa","html","java-8","javascript","maven","mysql-database","spring-boot","swagger-ui"],"created_at":"2024-09-24T20:48:02.931Z","updated_at":"2025-12-29T13:58:54.633Z","avatar_url":"https://github.com/Kapil7982.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Customer Management Application\n\nThis application allows users to manage customers, including adding, editing, deleting, and searching for customer records. The application includes a login system and utilizes JWT tokens for authentication.\n\n## Table of Contents\n\n- [Features](#features)\n- [Technologies Used](#technologies-used)\n- [Installation](#installation)\n- [Usage](#usage)\n- [API Endpoints](#api-endpoints)\n- [Frontend Functionality](#frontend-functionality)\n- [Images](#images)\n\n## Features\n\n- User authentication with JWT tokens\n- Add, edit, delete customer records\n- Search customer records\n- Sync customer records with backend\n- Responsive design\n\n## Technologies Used\n\n- **Frontend**: HTML, CSS, JavaScript\n- **Backend**: Spring Boot, Java\n- **Database**: MySQL \n- **Authentication**: JWT (JSON Web Tokens)\n\n## Installation\n\n### Prerequisites\n\n- Java 8 or above\n- Maven\n- Spring\n\n### Backend Setup\n\n1. Clone the repository:\n\n    ```sh\n    git clone https://github.com/Kapil7982/sunbase.git\n    ```\n\n2. Navigate to the backend directory:\n\n    ```sh\n    cd SpringSecurityWithJwt\n    ```\n\n3. Build the project with Maven:\n\n    ```sh\n    mvn clean install\n    ```\n\n4. Run the application:\n\n    ```sh\n    mvn spring-boot:run\n    ```\n\n### Frontend \n\n1. HTML\n\n2. CSS\n\n3. JavaScript\n\n## Usage\n\n### Login\n\n1. Open the application in your web browser.\n2. Navigate to the login page.\n3. Enter your login credentials.\n4. Upon successful login, you will be redirected to the customer list page.\n\n### Managing Customers\n\n- **Add Customer**: Click the \"Add Customer\" button and fill out the form.\n- **Edit Customer**: Click the edit button next to the customer you want to edit.\n- **Delete Customer**: Click the delete button next to the customer you want to delete.\n- **Search Customers**: Use the search bar to filter customers by keyword.\n\n## API Endpoints\n\n### Authentication\n\n- `GET /signIn` - Login endpoint (Basic Auth)\n\n### Customers\n\n- `GET /customers` - Get all customers \n- `POST /customers` - Add a new customer\n- `GET /customers/search` - Search customers by keyword\n- `DELETE /{customerId}` - Delete a customer by ID\n\n### Sync\n\n- `POST /fetch-and-save-customers` - Sync customers with the backend\n\n## Frontend Functionality\n\n### Event Listeners\n\n- **Login Form**: Handles user login and stores JWT token.\n- **Add Customer Form**: Submits new customer data to the backend.\n- **Sync Button**: Syncs customer data with the backend.\n- **Search Input**: Filters customer list based on search keyword.\n\n### Functions\n\n- **loadCustomers**: Fetches and displays customer data.\n- **displayCustomers**: Renders customer data in the table.\n- **editCustomer**: Redirects to the edit customer page.\n- **deleteCustomer**: Deletes a customer and reloads the customer list.\n- **logout**: Clears the JWT token and redirects to the login page.\n\n## Images\n\n![Screenshot 2024-07-27 072359](https://github.com/user-attachments/assets/9f5270c1-2885-47a1-9351-024b4393edc3)\n-\n![Screenshot 2024-08-02 071307](https://github.com/user-attachments/assets/d4a5e688-ae0f-45d5-8dd9-823c3c641c8c)\n-\n![Screenshot 2024-08-02 071332](https://github.com/user-attachments/assets/d3842430-5ed4-4b08-bf60-4c8045a83784)\n-\n![Screenshot 2024-07-27 072208](https://github.com/user-attachments/assets/d1e1e8eb-88be-42ce-b954-7d6ac35e45bf)\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkapil7982%2Fsunbase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkapil7982%2Fsunbase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkapil7982%2Fsunbase/lists"}