# 🎯 AccManager - SQL Server Backend Setup Complete ## ✅ Database Configuration Complete SQL Server database **AccManager** has been successfully configured with all necessary tables and initial data. ### 📊 Database Information ``` Server IP: 172.20.235.176 Database: AccManager User: sa Password: robotics@2020 Port: 1433 (default) ``` ### 👤 Default Admin Account ``` Username: admin Password: admin Role: admin Status: Active ``` ## 📋 Database Tables Created ### 1. **Users** - User Management - Stores login credentials and user roles - Default admin user: admin/admin ### 2. **Applications** - Service Management - 4 sample applications pre-loaded: - AWS (Cloud) - online - GitHub (VCS) - online - Google Workspace (Collaboration) - online - Nginx Proxy (Infra) - offline ### 3. **Accounts** - Credential Storage - Stores credentials for each user-application combination - Linked to Users and Applications tables ### 4. **AuditLog** - Activity Tracking - Logs all INSERT, UPDATE, DELETE operations - User actions tracked for security ## 🚀 Backend Server Options ### Option 1️⃣: Node.js + Express (Recommended) **Files:** - `server.js` - Main server file - `package.json` - Dependencies **Quick Start:** ```bash # 1. Install Node.js from https://nodejs.org/ # 2. Install dependencies npm install # 3. Run server npm start # Server runs on: http://localhost:3000 ``` ### Option 2️⃣: Python + Flask **Files:** - `server_python.py` - Main server file - `requirements.txt` - Dependencies **Quick Start:** ```bash # 1. Install Python 3.8+ from https://www.python.org/ # 2. Install dependencies pip install -r requirements.txt # 3. Run server python server_python.py # Server runs on: http://localhost:5000 ``` ## 📡 API Endpoints ### Health Check ```http GET /api/health ``` ### Authentication ```http POST /api/auth/login ``` ### Users Management ```http GET /api/users GET /api/users/:id POST /api/users ``` ### Applications ```http GET /api/applications POST /api/applications ``` ### Accounts ```http GET /api/accounts/user/:userId POST /api/accounts ``` ### Database Info ```http GET /api/database/info ``` ## 📚 Documentation Files - **README.md** (this file) - Overview - **SETUP_GUIDE.md** - Detailed installation steps - **DATABASE_SETUP.md** - Schema and API documentation - **server.js** - Node.js backend source - **server_python.py** - Python backend source ## 🔐 Default Credentials ``` Username: admin Password: admin Role: admin ``` ## 🔧 Project Files ``` d:\RoboticsSource\AccManager\ ├── server.js (Node.js backend) ├── server_python.py (Python backend) ├── package.json (Node.js dependencies) ├── requirements.txt (Python dependencies) ├── .env (Configuration) ├── database/ │ └── setup.sql (SQL setup script) ├── SETUP_GUIDE.md (Installation guide) ├── DATABASE_SETUP.md (Database documentation) └── README.md (This file) ``` ## ✅ Status - ✓ Database created (AccManager) - ✓ 4 tables created (Users, Applications, Accounts, AuditLog) - ✓ Admin user created (admin/admin) - ✓ Sample applications added - ✓ Backend servers ready (Node.js + Python options) - ✓ API endpoints documented --- **Version:** 2.0.0 (Backend Ready) **Database:** SQL Server / AccManager **Last Updated:** March 27, 2026