{"id":25124478,"url":"https://github.com/alokverma18/smartgrid","last_synced_at":"2026-04-09T12:46:06.353Z","repository":{"id":268399531,"uuid":"903824024","full_name":"alokverma18/SmartGrid","owner":"alokverma18","description":"A basic full-stack application ","archived":false,"fork":false,"pushed_at":"2024-12-16T15:04:20.000Z","size":227,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T08:16:10.070Z","etag":null,"topics":["ag-grid","angular","api","flask","mysql","python"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/alokverma18.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-12-15T16:46:01.000Z","updated_at":"2024-12-18T13:26:59.000Z","dependencies_parsed_at":"2024-12-16T14:42:53.502Z","dependency_job_id":"73316d0a-c18e-4625-a19b-798c7651be96","html_url":"https://github.com/alokverma18/SmartGrid","commit_stats":null,"previous_names":["alokverma18/smartgrid"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokverma18%2FSmartGrid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokverma18%2FSmartGrid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokverma18%2FSmartGrid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokverma18%2FSmartGrid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alokverma18","download_url":"https://codeload.github.com/alokverma18/SmartGrid/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246863664,"owners_count":20846295,"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":["ag-grid","angular","api","flask","mysql","python"],"created_at":"2025-02-08T08:16:11.208Z","updated_at":"2025-12-30T22:45:30.951Z","avatar_url":"https://github.com/alokverma18.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SmartGrid\n\nA basic full-stack application to manage data efficiently, including fetching data from a MySQL database, and providing the functionality to display, add, update, and delete records using a Flask backend and an Angular frontend with AG-Grid for a dynamic user interface.\n\n## Tech Stack⚙️\n  - **Frontend**:\n    - **Angular**: Framework for building the user interface.\n    - **AG-Grid**: Advanced grid library for displaying and manipulating data efficiently.\n    - **Angular Material**: Optional library for UI components and styling.\n\n  - **Backend**:\n    - **Python**: Programming language for the backend.\n    - **Flask**: Lightweight web framework to handle routing and APIs.\n    - **MySQL**: Relational database used for storing data.\n    - **MySQL Connector (pymysql)**: Library to interact with the MySQL database.\n\n\n## Features✨\n  - **Display Records**: View all records in a dynamic grid.\n  - **Add Record**: Add new record.\n  - **Update Record**: Edit existing records.\n  - **Delete Record(s)**: Remove records from the database.\n  - **Filter \u0026 Sort**: Easily filter and sort data within the grid.\n\n## Project Workflow🔄\n1. **Backend**:\n   - **Fetch Data**: API to fetch data from MySQL.\n   - **Add/Update/Delete**: APIs to manipulate data.\n   - **Flask** handles the server-side logic and interacts with the database.\n\n2. **Frontend**:\n   - **AG-Grid** displays data in a structured and sortable table format.\n   - User actions (Add, Edit, Delete) are handled through Angular service, making HTTP calls to the Flask backend.\n\n3. **Database**:\n   - MySQL database stores data with tables designed for efficient querying and manipulation.\n\n## Setup Instructions🛠️\n### Prerequisites:\n- **Backend**: Python (3.9+), MySQL Server.\n- **Frontend**: Node.js (16+), Angular CLI.\n\n### Setup:\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/alokverma18/SmartGrid.git\n   cd SmartGrid\n2. Install backend dependencies:\n   ```bash\n   cd Backend\n   pip install -r requirements.txt\n3. Configure the database by creating a .env file (sample given below):\n   ```bash\n   MYSQL_DATABASE_USER=root\n   MYSQL_DATABASE_PASSWORD=xyz\n   MYSQL_DATABASE_DB=employee\n   MYSQL_DATABASE_HOST=localhost\n4. Start the Flask server:\n   ```bash\n   python main.py\n   ```\n5. Navigate baack to the root directory (SmartGrid) and install frontend dependencies:\n   ```bash\n   cd ..\n   npm install\n6. Start the Angular development server:\n   ```bash\n   ng serve\n7. Access the application at [localhost](http://localhost:4200) (or as specified in your terminal)\n   \n## Snapshot📸\n![Home page](Snapshot.png)\n\n## Contributions 🤝\nAll contributions are welcome! If you spot any issues, have suggestions, or want to add features, feel free to create a PR. Thanks for contributing to this project! 🚀\n\n## Connect🌐\n[![linkedin](https://img.shields.io/badge/linkedin-0A66C2?style=for-the-badge\u0026logo=linkedin\u0026logoColor=white)](https://www.linkedin.com/in/alokverma18/)\n\n### Leave a 🌟 if you like it!\n\n### Thank You!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falokverma18%2Fsmartgrid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falokverma18%2Fsmartgrid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falokverma18%2Fsmartgrid/lists"}