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 -
Backend Setup:
-
Navigate to the
srcdirectory: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.
-
-
Frontend Setup:
-
In a separate terminal, navigate to the
lightnap-ngdirectory: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 backend in Visual Studio you may see an Exception User-Unhandled dialog in the
IdentityService.LogInAsyncmethod for aUserFriendlyApiException. It is recommended that you disable this behavior by unchecking theBreak when this exception type is user-unhandledsince those exceptions are thrown regularly. - Email: