Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ jobs:
run: dotnet test --no-restore --verbosity normal

- name: dotnet publish
run: dotnet publish ./src/REG.Angular/REG.Angular.csproj -c Release -o ${{env.DOTNET_ROOT}}/REG
run: dotnet publish ./src/REG.WebApi/REG.WebApi.csproj -c Release -o ${{env.DOTNET_ROOT}}/webapi

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v7
with:
name: .net-app
path: ${{env.DOTNET_ROOT}}/REG
path: ${{env.DOTNET_ROOT}}/webapi

github-release:
needs: build
Expand Down
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
![Build status](https://github.com/Externius/RandomEncounterGenerator/actions/workflows/main.yml/badge.svg)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)

This is a ASP.NET Core 10.0 Angular project for generating random encounters using D&D5th Edition SRD monsters.
This is an ASP.NET Core 10.0 + Angular project for generating random encounters using D&D5th Edition SRD monsters.

## Prerequisites

Expand All @@ -13,21 +13,29 @@ You have Node.js and npm installed, also .NET 10 SDK.

Use `git clone` to clone the repository.

## Build
## Build and run

In your preferred IDe run the REG.Angular project.
In your preferred IDE run the REG.WebApi project.
Or manually in the project root folder you must run the following commands in a terminal:

``` bash
dotnet build
```

Than in the REG.Angular folder:
Then in the REG.WebApi folder:

``` bash
dotnet run
```

Also, you need to run the following commands in the REG.Angular folder

``` bash
npm ci
npm run build
npm run start
```

## Usage

Open the <https://localhost:5001/> address in a browser.
Open the <https://localhost:4200/> address in a browser.
2 changes: 1 addition & 1 deletion REG.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<File Path="global.json" />
</Folder>
<Folder Name="/src/">
<Project Path="src/REG.Angular/REG.Angular.csproj" />
<Project Path="src/REG.Core/REG.Core.csproj" />
<Project Path="src/REG.Resources/REG.Resources.csproj" />
<Project Path="src/REG.WebApi/REG.WebApi.csproj" />
</Folder>
<Folder Name="/tests/">
<Project Path="tests/REG.Core.Tests/REG.Core.Tests.csproj" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries
# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support
# You can see what browsers were selected by your queries by running:
# npx browserslist
last 1 Chrome version
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support

# You can see what browsers were selected by your queries by running:
# npx browserslist

last 1 Chrome version
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# Editor configuration, see http://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
[*.ts]
quote_type = single
[*.md]
max_line_length = off
trim_trailing_whitespace = false
[*.{razor,cshtml}]
charset = utf-8-bom
# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.ts]
quote_type = single

[*.md]
max_line_length = off
trim_trailing_whitespace = false

[*.{razor,cshtml}]
charset = utf-8-bom
Loading