Prerequisites

  • .NET Core SDK
  • Node.js and npm
  • Angular CLI

Installation

  1. Clone the repository:

    git clone https://github.com/sharplogic/LightNap.git
    cd LightNap
    
  2. Back-End Setup:

    • Navigate to the src directory:

      cd src
      
    • Restore .NET Core dependencies:

      dotnet restore
      
    • Run the application:

      dotnet run --project LightNap.WebApi
      

    The application will log the error and quit if anything in the startup or seeding process fails. This includes database migrations and user/role seeding. Please check the logs if a deployment fails to start.

  3. Front-End Setup:

    • In a separate terminal, navigate to the lightnap-ng directory:

      cd src/lightnap-ng
      
    • Install Angular dependencies:

      npm install
      
    • Run the Angular application:

      ng serve
      

Usage

  • Access the application at http://localhost:4200.
  • By default, an administrator account is created with:
    • Email: admin@admin.com
    • UserName: admin
    • Password: A2m!nPassword