Skip to content

LightNap (lightweight .NET/Angular/PrimeNG) is a full stack starter kit designed to provide a boost to Single Page Applications (SPA).

License

Notifications You must be signed in to change notification settings

SharpLogic/LightNap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

LightNap

Lightweight .NET/Angular/PrimeNG full-stack starter kit for building modern Single Page Applications (SPA) with enterprise-grade authentication and identity management out of the box.

License: MIT .NET Angular PrimeNG


πŸš€ Quick Start

LightNap provides a complete foundation for building secure, scalable web applications with minimal setup. Perfect for developers who want to skip the boilerplate and start building features immediately.

πŸ“– Documentation | πŸŽ₯ YouTube Channel | 🌐 Live Demo


✨ Features

Backend (.NET 10)

  • ASP.NET Core Web API - RESTful API with best practices
  • ASP.NET Identity - Complete authentication & authorization framework
  • JWT Token Management - Secure token-based authentication with refresh tokens
  • Rate Limiting - Built-in API rate limiting with configurable policies per endpoint
  • Multiple Database Providers - SQL Server, SQLite, and In-Memory options
  • Redis Caching - Distributed caching with hybrid cache support
  • SignalR - Real-time communication for notifications and live updates
  • Email Integration - Templated email system for authentication flows
  • User Management - Full CRUD operations for users, roles, and permissions
  • Device Tracking - Monitor and manage user sessions across devices
  • Maintenance Service - Background task processing with Azure WebJobs support

Frontend (Angular 20)

  • Angular - Latest Angular framework with standalone components
  • PrimeNG - Comprehensive UI component library (70+ components)
  • Tailwind CSS - Utility-first CSS framework for rapid styling
  • Progressive Web App (PWA) - Installable with service worker for asset caching (good starting point for offline support)
  • Content Management System (CMS) - Basic support for zones and pages with permissions so users can update static content without rebuilds
  • In-App Notifications - Real-time notification system
  • Form Validation - Built-in validation with custom error handling
  • Route Guards - Role-based access control at the routing level

Developer Experience

  • Code Scaffolding - Generate complete CRUD infrastructure from entity classes
    • Backend API controllers and services
    • Frontend components and routing
    • Form validation and data models
    • All in seconds!
  • C#/TypeScript - Type safety across the full stack
  • Comprehensive Testing - Unit test setup for backend and frontend services
  • Docker Support - Containerization ready with Dockerfiles
  • CI/CD Ready - GitHub Actions workflows included

πŸ—οΈ Project Structure

src/
β”œβ”€β”€ lightnap-ng/                  # Angular frontend (PrimeNG + Tailwind)
β”œβ”€β”€ LightNap.WebApi/              # ASP.NET Core Web API
β”œβ”€β”€ LightNap.Core/                # Business logic & data access
β”œβ”€β”€ LightNap.DataProviders.Sqlite/  # SQLite data provider
β”œβ”€β”€ LightNap.DataProviders.SqlServer/  # SQL Server data provider
β”œβ”€β”€ LightNap.MaintenanceService/  # Background tasks web job
β”œβ”€β”€ LightNap.Core.Tests/          # Backend init tests
└── Scaffolding/                  # Code generation templates

πŸ“‹ Prerequisites


πŸ”§ Getting Started

1. Clone the Repository

git clone https://github.com/SharpLogic/LightNap.git
cd LightNap

2. Start the Backend

cd src/LightNap.WebApi
dotnet run

The API will be available at https://localhost:7266 (or check console output).

Note: The backend runs with a SQLite database by default and logs emails to the console for development. See Application Configuration to configure SQL Server, email providers, rate limiting, caching, or other settings.

3. Start the Frontend

In a new terminal:

cd src/lightnap-ng
npm install
npm start

The application will open at http://localhost:4200.

4. Login with Default Credentials

The application comes with three pre-seeded user accounts for testing:

Role Email Password Description
Administrator Admin@lightnap.azurewebsites.net P@ssw0rd Full access to manage users, roles, and system settings.
Content Editor ContentEditor@lightnap.azurewebsites.net P@ssw0rd Can manage CMS aspects of the site.
Regular User RegularUser@lightnap.azurewebsites.net P@ssw0rd Basic user with limited access for standard application features.

πŸ“– Next Steps

For detailed guides on configuration, customization, and advanced features, visit the official documentation:


πŸ“š Documentation

Comprehensive documentation is available at lightnap.sharplogic.com:

  • Getting Started - Setup and configuration guides
  • Application Configuration - Complete configuration reference including database providers, authentication, rate limiting, caching, and email setup
  • Common Scenarios - Step-by-step tutorials for adding features
  • Concepts - Architecture and design decisions
  • API Reference - Complete endpoint documentation
  • GitHub Actions - CI/CD workflow guides

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“Ί Video Tutorials

Check out the LightNap YouTube Channel for video tutorials, feature demonstrations, and development tips.


πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ™ Acknowledgments


πŸ“ž Support


Made with ❀️ by SharpLogic

About

LightNap (lightweight .NET/Angular/PrimeNG) is a full stack starter kit designed to provide a boost to Single Page Applications (SPA).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5