This project is a CRUD application built with Angular and json-server. It includes user management, role management, and authentication features.
- Node.js (v18 or higher)
- npm (v9 or higher)
- Angular CLI (v18.2.1)
- Git
angular-crud-app/
├── src/ # Angular frontend source code
│ ├── app/
│ │ ├── features/ # Feature modules
│ │ │ ├── auth/ # Authentication
│ │ │ ├── user-management/ # User management
│ │ │ └── role-management/ # Role management
│ │ ├── shared/ # Shared components and services
│ │ └── core/ # Core module
│ └── assets/ # Static assets
└── server/ # json-server mock API
├── db.json # Database file
└── server.js # Custom routes configuration and auth implementation
- Users cannot edit or delete their own accounts
- The default Super Admin user (ID: 1) cannot be edited or deleted
- Only Super Admin users can manage other users' accounts
- The Super Admin role (ID: 1) cannot be edited or deleted
- Only Super Admin users can manage roles
- Role permissions cannot be modified for the Super Admin role
- Any role with all permissions assigned will have Super Admin-like privileges
- Exercise caution when assigning all permissions to a role as it grants full system access
- Email: john.doe@example.com
- Password: 12345
git clone https://github.com/ramkumar897003/angular-crud-app.git
cd angular-crud-app# Install Angular dependencies
npm install# Start json-server with custom server configuration
node server/server.jsThe json-server will run on http://localhost:4201
# In a new terminal, from the root directory
ng serveThe Angular application will run on http://localhost:4200
ng serve- Start the development serverng build- Build the applicationng test- Run unit tests
node server/server.js- Start json-server with custom configurationjson-server --watch server/db.json- Start json-server with default configuration
# Run unit tests
ng test