gitcode-test-zsy-node-qqq:基于 Vue.js 和 Node.js 的登录系统项目

可用于快速搭建登录功能模块,该项目包含 Vue.js 前端和 Node.js 后端,提供用户登录接口,支持用户名密码验证并返回 token,前端包含登录页和欢迎页。【此简介由AI生成】

Branch1Tags0

Login System

A simple login system with Vue.js frontend and Node.js backend.

Project Structure

.
├── public/           # Frontend static files
│   ├── index.html   # Login page
│   └── welcome.html # Welcome page after login
├── app.js           # Backend server
└── package.json     # Project configuration

Development Setup

# Install dependencies
npm install

# Start development server
npm run dev

# Start backend server
npm start

Build and Deploy

# Install dependencies
npm run build:pre

# No build needed for static files
npm run build

# Start production server
npm start

API Endpoints

  • POST /api/auth/login
    • Request body: { username: string, password: string }
    • Response: { message: string, token: string, user: { id: number, username: string } }

Default Test Account

  • Username: admin
  • Password: admin123

Introduction

可用于快速搭建登录功能模块,该项目包含 Vue.js 前端和 Node.js 后端,提供用户登录接口,支持用户名密码验证并返回 token,前端包含登录页和欢迎页。【此简介由AI生成】

Customize your domain