Angular Blog CMS is a lightweight, intuitive content management system that demonstrates modern Angular development practices. Perfect for learning Angular fundamentals or as a starter template for your blog platform.
- π¨ Clean Architecture - Well-organized component structure
- π Modern Stack - Built with Angular 20 and TypeScript 5.4
- π± Responsive Design - Works seamlessly across all devices
- β‘ Fast Performance - Optimized for speed and efficiency
- π§ Easy Setup - Get started in minutes
Get up and running in just a few steps:
git clone https://github.com/sharadj19/blog-cms.git
cd blog-cms
npm installYou'll need to run both the backend API and frontend application:
# Terminal 1 - Start the JSON Server (Backend)
npm run db-json
# Terminal 2 - Start Angular Development Server (Frontend)
npm startπ That's it! Your application is now running:
- Frontend: http://localhost:4200
- Backend API: http://localhost:3001
To test on mobile devices on the same network(hotspot):
npm run start:mobile
|
|
|
|
| Technology | Purpose |
|---|---|
| Angular 20 | Frontend framework |
| TypeScript 5.4 | Programming language |
| json-server | Mock REST API |
| Angular Router | Navigation & routing |
| RxJS | Reactive programming |
| Vercel | Deployment platform |
blog-cms/
|
βββ json-server-db/
β βββ db.json # Mock API data
β
βββ public/
β βββ favicon.ico
β
βββ screenshots/ # App screenshots for README
β βββ categories.png
β βββ dashboard.png
β βββ post-detail.png
β βββ post-editor.png
β βββ posts-list.png
β
βββ src/
β βββ app/
β β βββ models/ # Data models
β β β βββ category-model.ts
β β β βββ post-model.ts
β β β
β β βββ pages/ # App pages / routes
β β β βββ categories/
β β β β βββ categories.html
β β β β βββ categories.ts
β β β β βββ categories.css
β β β β
β β β βββ dashboard/
β β β β βββ dashboard.html
β β β β βββ dashboard.ts
β β β β βββ dashboard.css
β β β β
β β β βββ post-detail/
β β β β βββ post-detail.html
β β β β βββ post-detail.ts
β β β β βββ post-detail.css
β β β β
β β β βββ post-form/
β β β β βββ post-form.html
β β β β βββ post-form.ts
β β β β βββ post-form.css
β β β β
β β β βββ posts/
β β β βββ posts.html
β β β βββ posts.ts
β β β βββ posts.css
β β β
β β βββ services/
β β β βββ api-service.ts # REST API wrapper
β β β
β β βββ app.config.ts
β β βββ app.html
β β βββ app.ts
β β βββ app.routes.ts
β β
β βββ assets/
β β βββ icons/ # UI icons
β β βββ categories.svg
β β βββ dashboard.svg
β β βββ posts.svg
β β
β βββ environments/ # Env configs
β β βββ environment.ts
β β βββ environment.development.ts
β β
β βββ index.html
β βββ main.ts
β βββ styles.css
β
βββ package.json
βββ angular.json # Angular project config
| Command | Description |
|---|---|
npm start |
Start Angular development server |
npm run db-json |
Start JSON Server backend |
npm run build |
Build for production |
npm run start:mobile |
Start with network access for mobile testing |
npm test |
Run unit tests |
Environment configurations can be modified in:
src/environments/environment.development.ts(development)src/environments/environment.ts(production)
This project helped me master:
β Angular Fundamentals
- Component architecture and lifecycle hooks
- Dependency injection and services
- Template and reactive forms
- Data binding and event handling
β Routing & Navigation
- Angular Router configuration
- Route guards and lazy loading
- Navigation strategies
β HTTP & APIs
- HttpClient for API calls
- Observable patterns with RxJS
- Error handling and interceptors
β TypeScript
- Strong typing and interfaces
- Generics and advanced types
- Best practices and patterns
β Development Workflow
- Version control with Git
- Code organization and structure
- Debugging techniques
- Deployment strategies
Distributed under the GNU General Public License v3.0. See LICENSE for more information.
If you have any feedback, please reach out by creating an issue or connecting with me through my portfolio!
Made with β€οΈ by Sharad Chandel