{"id":24983924,"url":"https://github.com/ganeshborkar31/fastapi_user_manegment","last_synced_at":"2026-04-10T07:53:03.769Z","repository":{"id":275159240,"uuid":"925204945","full_name":"ganeshborkar31/Fastapi_user_manegment","owner":"ganeshborkar31","description":"FastAPI-powered backend for CRUD operations on users. Features interactive docs, MySQL integration, and scalable design. Perfect for apps needing user management.","archived":false,"fork":false,"pushed_at":"2025-03-20T18:12:21.000Z","size":373,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T19:46:57.702Z","etag":null,"topics":["fastapi","mysql","nodejs","python","react","reactjs","rest-api","restful-api","sqlmodel"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ganeshborkar31.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":"2025-01-31T12:40:53.000Z","updated_at":"2025-03-20T18:12:25.000Z","dependencies_parsed_at":"2025-01-31T22:01:26.053Z","dependency_job_id":null,"html_url":"https://github.com/ganeshborkar31/Fastapi_user_manegment","commit_stats":null,"previous_names":["ganeshborkar31/fastapi_user_manegment"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganeshborkar31%2FFastapi_user_manegment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganeshborkar31%2FFastapi_user_manegment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganeshborkar31%2FFastapi_user_manegment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganeshborkar31%2FFastapi_user_manegment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ganeshborkar31","download_url":"https://codeload.github.com/ganeshborkar31/Fastapi_user_manegment/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246168108,"owners_count":20734390,"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":["fastapi","mysql","nodejs","python","react","reactjs","rest-api","restful-api","sqlmodel"],"created_at":"2025-02-04T09:40:19.752Z","updated_at":"2026-04-10T07:52:58.734Z","avatar_url":"https://github.com/ganeshborkar31.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# User Management App\n\nA full-stack application for managing users, built with **FastAPI** (backend), **SQLModel** (ORM), **MySQL** (database), and **React** (frontend).\n\n\n---\n\n## Features\n\n- **Create Users**: Add new users with details like name, email, and age.\n- **Read Users**: Fetch and display a list of all users.\n- **Update Users**: Edit user details (name, email, age).\n- **Delete Users**: Remove users from the database.\n- **Interactive Frontend**: A user-friendly React frontend to interact with the backend.\n\n---\n\n## Technologies Used\n\n### Backend\n- **FastAPI**: A modern, fast (high-performance) web framework for building APIs with Python.\n- **SQLModel**: An ORM (Object-Relational Mapping) library for interacting with the database.\n- **MySQL**: A relational database management system for storing user data.\n\n### Frontend\n- **React**: A JavaScript library for building user interfaces.\n- **Axios**: A promise-based HTTP client for making API requests.\n- **CSS**: Basic styling for the frontend.\n\n---\n\n## Prerequisites\n\nBefore running the project, ensure you have the following installed:\n\n- **Python 3.7+**\n- **Node.js** (for the React frontend)\n- **MySQL** (or any MySQL-compatible database)\n- **pip** (Python package manager)\n- **npm** (Node.js package manager)\n\n---\n\n## Setup Instructions\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/ganeshborkar31/Fastapi_user_management.git\ncd Fastapi_user_management\n```\n\n### 2. Set Up the Backend\n\n- Navigate to the backend directory:\n```bash\n    cd backend\n```\n\n- Create virtual Enviroment:\n```\n    python3 -m venv .venv\n\n    source .venv/bin/activate     # for Linux\n            or\n    venv\\Scripts\\activate         # for Windows\n```\n\n- Install Python dependencies:\n```bash\n    pip install -r requirements.txt\n```\n### 3. Set up the MySQL database:\n\n- Create a database named userapp_db in MySQL.\n\n    - Update the DATABASE_URL in main.py with your MySQL credentials:\n\n        ```python\n\n        DATABASE_URL = \"mysql+pymysql:username:password@localhost:3306/userapp_db\"\n\n- Run the FastAPI backend:\n    ```bash\n        uvicorn main:app --reload\n    ```\n    The backend will be available at http://localhost:8000.\n\n### 4. Set Up the Frontend\n- Navigate to the frontend directory:\n    ```bash\n        cd ../frontend\n    ```\n- Install Node.js dependencies:\n    ```bash\n\n        npm install\n    ```\n- Start the React development server:\n    ```bash\n\n        npm start\n    ```\n- The frontend will be available at http://localhost:3000.\n\n## API Endpoints\n\nThe FastAPI backend exposes the following endpoints:\n\n- GET /users/: Fetch all users.\n\n- GET /users/{user_id}: Fetch a single user by ID.\n\n- POST /users/: Create a new user.\n\n- PUT /users/{user_id}: Update a user by ID.\n\n- DELETE /users/{user_id}: Delete a user by ID.\n\n## Frontend Usage\n\n- Add a User:\n\n    - Fill out the form with the user's name, email, and age.\n\n    - \"Add\" to create a new user.\n\n- View All Users:\n\n    - The list of users is displayed automatically on the homepage.\n\n- Edit a User:\n\n    - Click the \"Edit\" button next to a user.\n\n    - Update the details in the form and click \"Update.\"\n\n- Delete a User:\n\n    - Click the \"Delete\" button next to a user to remove them.\n\n## Project Structure\n\n```\nFastapi_user_management/\n├── backend/\n│   ├── main.py                # FastAPI backend code\n│   ├── requirements.txt       # Python dependencies\n├── frontend/\n│   ├── public/                # Static assets\n│   ├── src/                   # React frontend code\n│   │   ├── components/        # React components\n│   │   ├── App.js             # Main React component\n│   │   ├── App.css            # Styling for the app\n│   ├── package.json           # Node.js dependencies\n```\n## Screenshots\n### Frontend\n![Alt text](https://github.com/ganeshborkar31/fastapi_user_manegment/blob/main/screenshots/Screenshot%20from%202025-01-31%2020-03-44.png \"Frontend\")\n### Backend Apis\n![Alt text](https://github.com/ganeshborkar31/fastapi_user_manegment/blob/main/screenshots/Screenshot%20from%202025-01-31%2020-04-49.png \"Backend\")\n\n## User Management App Contributing\n\nContributions are welcome! If you'd like to contribute, please follow these steps:\n\n- Fork the repository.\n\n- Create a new branch (git checkout -b feature/YourFeatureName).\n\n- Commit your changes (git commit -m 'Add some feature').\n\n- Push to the branch (git push origin feature/YourFeatureName).\n\n- Open a pull request.\n\n## License\n\n- This project is licensed under the MIT License. \n## Contact\n\nFor questions or feedback, feel free to reach out:\n\nYour Name: ganeshborkar107@gmail.com\n\nGitHub: ganeshborkar31\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganeshborkar31%2Ffastapi_user_manegment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fganeshborkar31%2Ffastapi_user_manegment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganeshborkar31%2Ffastapi_user_manegment/lists"}