Building and Running the Application
Prerequisites
- .NET 9 SDK
- Node.js and npm
- Angular CLI
Installation
-
Clone the repository:
git clone https://github.com/sharplogic/LightNap.git cd LightNap
-
Back-End Setup:
-
Navigate to the
src
directory:cd src
-
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.
-
-
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
If you are debugging the back-end in Visual Studio you may see an Exception User-Unhandled dialog in the
IdentityService.LogInAsync
method for aUserFriendlyApiException
. It is recommended that you disable this behavior by unchecking theBreak when this exception type is user-unhandled
since those exceptions are thrown regularly. - Email: