# devTools **Repository Path**: whp0000/dev-tools ## Basic Information - **Project Name**: devTools - **Description**: Dev Tools 是一个基于 FastAPI + Vue 3 构建的现代化全栈开发工具平台,旨在为开发者提供便捷的工作记录管理和工具集服务,提供全套代码与部署教程,便于二次开发。核心功能 1.用户认证系统 :支持用户名/密码登录、邮箱验证码登录,以及完整的注册、忘记密码流程;2.工具列表 :提供各类开发工具的分类展示与使用入口 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: main - **Homepage**: https://www.whping.top - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-12-11 - **Last Updated**: 2026-01-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: Web, Vue, FastAPI, 全栈, SQL ## README # Dev Tools Full-Stack Project This is a full-stack project built with FastAPI + Vue 3, providing features such as a tool list, user authentication, and work record management. ## Demo Address [www.whping.top](http://www.whping.top) ## Project Structure ``` ├── backend/ # Backend Service (FastAPI) │ ├── app/ │ │ ├── auth/ # Modules related to user authentication │ │ ├── config/ # Configuration files │ │ ├── db/ # Database-related modules │ │ ├── models/ # Database models │ │ ├── routes/ # Route definitions │ │ └── schemas/ # Pydantic model definitions │ ├── main.py # Application entry point │ └── requirements.txt # Dependency list ├── frontend/ # Frontend Application (Vue 3) │ ├── src/ │ │ ├── assets/ # Static resources │ │ ├── components/ # Vue components │ │ ├── router/ # Routing configuration │ │ ├── stores/ # Pinia state management │ │ ├── views/ # Page views │ │ ├── App.vue # Root component │ │ ├── main.js # Application entry │ │ └── style.css # Global styles │ ├── index.html # HTML template │ └── package.json # Dependency configuration └── docker-compose.yml # Docker container orchestration ``` ## Functional Modules ### Backend Features #### User Authentication - **Registration**: Create a new user. - **Login**: Obtain an access token. - **Get Current User**: Validate the token and retrieve current user information. #### Tool List - **Get Tool List**: Returns mock data for tools. #### Work Record Management - **Create Record**: Add a new work record. - **Read Record**: Retrieve work records by date, month, or record ID. - **Update Record**: Modify an existing work record. - **Delete Record**: Remove a work record. - **Query by Month**: Retrieve all work records for a specific month. ### Frontend Features #### User Authentication Interface - **Login**: Support username/password login and email verification code login. - **Registration**: Create a new user account. - **Forgot Password**: Reset password via email verification code. - **Email Verification**: Email verification for registration and password reset. #### Tool List - **Tool Display**: Display all available tools. - **Tool Categorization**: Display tools by category. #### Work Record Management - **Record Creation**: Add new work records. - **Record Query**: Query work records by date, month, or ID. - **Record Editing**: Modify existing work records. - **Record Deletion**: Delete unnecessary work records. - **Data Statistics**: Statistics of work records by month. #### Admin Dashboard - **User Management**: Manage system users. - **Permission Control**: Control user access permissions. #### Version Management - **Version Display**: Show frontend and backend version numbers. - **Automatic Detection**: Automatically detect backend version when application starts. ## Technology Stack ### Backend Technology Stack - **FastAPI**: For building high-performance APIs. - **SQLAlchemy**: For database operations. - **Pydantic**: For data validation and modeling. - **Bcrypt**: For password hashing. - **JWT**: For generating and validating access tokens. ### Frontend Technology Stack - **Vue 3**: Progressive JavaScript framework. - **Vite**: Next-generation frontend build tool. - **Element Plus**: Vue 3 based UI component library. - **Pinia**: Vue 3 state management library. - **Vue Router**: Vue 3 routing manager. - **Axios**: Promise-based HTTP client. - **Crypto-js**: Cryptographic algorithm library. ## Installation Steps ### Backend Installation 1. Create a virtual environment: ```bash python -m venv venv ``` 2. Activate the virtual environment: - Windows: ```bash venv\Scripts\activate ``` - Unix or Linux: ```bash source venv/bin/activate ``` 3. Install dependencies: ```bash pip install -r requirements.txt ``` 4. Initialize the database: ```bash python app/db/init_db.py ``` 5. Start the application: ```bash uvicorn main:app --reload ``` ### Frontend Installation 1. Install dependencies: ```bash npm install ``` 2. Start the development server: ```bash npm run dev ``` 3. Build for production: ```bash npm run build ``` ## Usage Visit the `/docs` endpoint to view and test the API documentation. ## Database Configuration Database configuration can be adjusted via the `Settings` class in `app/config/settings.py`. ## License This project is licensed under the MIT License. --- This document provides a basic overview and usage guide for the project. For implementation details, refer to the source code of each module.