Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
287 commits
Select commit Hold shift + click to select a range
9a4ac08
Quotations Done. Just need to match both Db values and Model values
Jan 13, 2024
fffdff7
minor .cshtml tweaks
medhatelmasry Jan 15, 2024
a443a60
fixes Taxes.cshtml & Banks.cshtml
medhatelmasry Jan 18, 2024
7f83c31
SalesOrder Adding Working...
Jan 20, 2024
004345b
Sales Invoice Working...
Jan 23, 2024
021cf61
SalesOrder Showing Up...
Jan 23, 2024
7db7bcb
Showing-Adding in SalesInvoice and SalesOrder flow done
Jan 24, 2024
da98856
Fixed Sales Quotation, Qoute Invoice and Reciept is synced
Jan 25, 2024
c2f583c
Except Reciept whole Accounts recieve is working good. Hehe
Jan 26, 2024
c0cbf9f
Editing Sales Invoice works
Jan 26, 2024
be97d8f
Sales Quote CRUD operation working well...
Jan 28, 2024
ce093d1
Purchase Order addition fixed...
Jan 29, 2024
b0c48a3
Viewing and Updating Puchase Order Works
Jan 29, 2024
08fb449
Add Button Added
Feb 3, 2024
c79cc1a
Add Button Added
Feb 3, 2024
36f534e
Inventory > Item Works
Feb 16, 2024
1920b33
Inventory > Item Works
Feb 16, 2024
0890284
Weird Edit stuff in Items
Feb 17, 2024
78cb57c
Chart of Accounts Array Flatten and Displayed
Feb 21, 2024
696a8f1
Item Panel working
Feb 23, 2024
f33cd6f
updated sln
medhatelmasry Apr 22, 2024
2169772
changed react nav
medhatelmasry Apr 26, 2024
860bb86
Update docker-compose.yml
Rai-Sahil Apr 28, 2024
c8b282b
updated _Layout_bootstrap.cshtml
medhatelmasry Apr 29, 2024
b70024a
Add or update the Azure App Service build and deployment workflow config
medhatelmasry Apr 29, 2024
d72b4dc
Rename build-deploy-azure.yml to build-deploy-azure.yml.disable
medhatelmasry Apr 29, 2024
3cba5e2
Specified Api subdirectory in endpoint_sahil_goodbooksapi.yml
medhatelmasry Apr 29, 2024
7e1e5de
added dotnet-ef tool and and migrations M1 & M2
medhatelmasry Apr 29, 2024
19df31a
Update endpoint_sahil_goodbooksapi.yml - build before dotnet-ef
medhatelmasry Apr 29, 2024
6ba0e2c
moire echos in API yml file
medhatelmasry Apr 29, 2024
dbe9ba8
Update endpoint_sahil_goodbooksapi.yml ./.build
medhatelmasry Apr 29, 2024
a813d6c
updated Api.csproj
medhatelmasry Apr 29, 2024
9d0f54a
api.csproj bak
medhatelmasry Apr 29, 2024
6705649
api.csproj bak
medhatelmasry Apr 30, 2024
507bf35
Api.csproj Output Type
medhatelmasry Apr 30, 2024
7a03b7c
changed Api.csproj
medhatelmasry Apr 30, 2024
72d7a7c
try api yml
medhatelmasry Apr 30, 2024
54096c6
Mi & Ma migrations
medhatelmasry Apr 30, 2024
9e380dc
all yml processing in root
medhatelmasry Apr 30, 2024
e701888
dotnet publish in api yml
medhatelmasry Apr 30, 2024
fe2b5b0
fixed error in api dotnet publish
medhatelmasry Apr 30, 2024
5c11a15
Api.csproj
medhatelmasry Apr 30, 2024
a4e8e02
auto api migration
medhatelmasry Apr 30, 2024
86f8d69
deleted unnecessary yml files
medhatelmasry Apr 30, 2024
f2e8c03
main app deployment
medhatelmasry Apr 30, 2024
e4a370c
apiurl
medhatelmasry Apr 30, 2024
dbddbaf
Add or update the Azure App Service build and deployment workflow config
medhatelmasry Apr 30, 2024
b0b5741
Update and rename endpoint_sahil_good-books.yml to good-books_api.yml
medhatelmasry Apr 30, 2024
9d198f4
Update and rename good-books_api.yml to good-books_mvc.yml
medhatelmasry Apr 30, 2024
215f8ee
Update and rename endpoint_sahil_goodbooksapi.yml to good-books_api.yml
medhatelmasry Apr 30, 2024
dba6665
modified good-books_mvc.yml
medhatelmasry Apr 30, 2024
00b6696
deleted many ts & js files not needed anymore
medhatelmasry Apr 30, 2024
cc0617d
InvariantGlobalization
medhatelmasry Apr 30, 2024
a8e147d
fixed many nullable code in main controller classes
medhatelmasry Apr 30, 2024
715b743
changes to Sto.csproj and Infrastructure.csproj
medhatelmasry Apr 30, 2024
6fb0373
compress publish artifact for mvc workflow
medhatelmasry May 1, 2024
7889c8a
extract tar.gz file
medhatelmasry May 1, 2024
fb379ee
fix mvc extract
medhatelmasry May 1, 2024
1dc8cf5
extract into current dir
medhatelmasry May 1, 2024
dad3528
MVC YML back to pre-archive
medhatelmasry May 1, 2024
babb8be
api apply migrations only if previous migrations do not exist
medhatelmasry May 1, 2024
c9b8f01
Menu bar cleaned
May 17, 2024
db502c2
Menu bar cleaned
May 17, 2024
8c34d6d
ci: add Azure Static Web Apps workflow file
medhatelmasry May 17, 2024
e20f4cc
search and replace Config/index.tsx
medhatelmasry May 17, 2024
26a1274
pwd in react yml
medhatelmasry May 17, 2024
bdf6b6b
/home/runner/work/GoodBooks/GoodBooks in react yml
medhatelmasry May 17, 2024
70bc9e2
ls in react yml
medhatelmasry May 17, 2024
52c485b
fix search & replace
medhatelmasry May 17, 2024
319de53
disp contents of index.tsx
medhatelmasry May 17, 2024
a0a958b
staticwebapp.config.json
medhatelmasry May 17, 2024
248e1b8
tar mvc yml - attempt 1
medhatelmasry May 17, 2024
1d2d561
assembly on layout page
medhatelmasry May 17, 2024
7b57110
updated tar yml
medhatelmasry May 17, 2024
0ca7574
tar yml fix
medhatelmasry May 17, 2024
75591fb
uncomment deploy in tar yml
medhatelmasry May 17, 2024
a7f8646
tar /home/runner/.dotnet/myapp
medhatelmasry May 17, 2024
e96e946
try fix tar
medhatelmasry May 17, 2024
5f80fa5
line 74 error in tar yml
medhatelmasry May 17, 2024
c02fe4f
change dir when tar
medhatelmasry May 17, 2024
80a4266
more tar
medhatelmasry May 17, 2024
8242727
final mvc tar yml
medhatelmasry May 17, 2024
62799c6
deleted coreui in mvc
medhatelmasry May 17, 2024
eadc602
Layout same through out the site
May 18, 2024
a49b73d
Layout width fixed
May 18, 2024
175dbc7
form foreground color to white
medhatelmasry May 20, 2024
e9beacd
fixed authentication scheme issues
medhatelmasry Jun 25, 2024
a9d88a1
GoodBooks light color on main page
medhatelmasry Jun 25, 2024
a5a6c58
No Warn in sahil branch
medhatelmasry Jun 25, 2024
e27e967
minutes of meeting with accountant on June 24, 2024
medhatelmasry Jun 25, 2024
7aaa7db
fixed issue 25
medhatelmasry Jul 5, 2024
422e197
closed issue 19
medhatelmasry Jul 5, 2024
b4d2bbe
added blazor to mvc project
medhatelmasry Jul 5, 2024
491085f
added counter blazor component
medhatelmasry Jul 6, 2024
d675496
[fix] Modified GoodBooks to Good Deed Books.
ydongchoi Jul 6, 2024
cc1b382
Merge pull request #29 from medhatelmasry/16-change-app-name-to-good-…
medhatelmasry Jul 6, 2024
5a3a476
fixed save customer and home page logo
medhatelmasry Jul 6, 2024
e8be1a3
disabled react github actions workflow file
medhatelmasry Jul 6, 2024
a6925d8
[chore] Spaces are left between the code for ease of understanding.
ydongchoi Jul 7, 2024
7fb0388
[fix] changed script src for bootstraps to solve problem about taxs p…
ydongchoi Jul 7, 2024
ae63091
Merge pull request #30 from medhatelmasry/11-financials-taxes
medhatelmasry Jul 7, 2024
de69e06
[fix] Modified Script src of knockout.
ydongchoi Jul 7, 2024
8481cbb
Merge branch '11-financials-taxes' of https://github.com/medhatelmasr…
ydongchoi Jul 7, 2024
7512823
Merge pull request #31 from medhatelmasry/11-financials-taxes
medhatelmasry Jul 8, 2024
4835898
[fix] Modified the anchor tag for the base tag for the purpose of int…
ydongchoi Jul 9, 2024
9870280
Merge branch '11-financials-taxes' of https://github.com/medhatelmasr…
ydongchoi Jul 9, 2024
7bc0cb3
Merge pull request #32 from medhatelmasry/11-financials-taxes
medhatelmasry Jul 9, 2024
143699f
[fix] Changed bootstrap version to use Collapsible Element properly.
ydongchoi Jul 10, 2024
4f7c9a1
[fix] Modified data-toggle Attribute Name to use Bootstrap Version 5.
ydongchoi Jul 10, 2024
ae1bc45
[feature] Created AccountViewModel to use in Chart of Accounts page.
ydongchoi Jul 11, 2024
013074c
[fix] Changed model type from string to AccountViewModel in Financial…
ydongchoi Jul 11, 2024
1068dce
[feature] Added Accounts view that has table & accordion feature.
ydongchoi Jul 11, 2024
0ca8f0b
[fix] Added ChildAccounts of grandChildAccount in Accounts view.
ydongchoi Jul 13, 2024
50d0e5d
Merge pull request #33 from medhatelmasry/17-exand-collapse-chart-of-…
medhatelmasry Jul 13, 2024
d2c0354
[feature] Added Authentication Service to protect api from unauthoriz…
ydongchoi Jul 16, 2024
3d316cb
[fix] Added await keyword in Signin Action Method.
ydongchoi Jul 16, 2024
d5aa091
[chore] Added JwtSettings in appsettings.Development.json to define I…
ydongchoi Jul 16, 2024
34a9792
[feature] Implemented Authentication Service for validating and creat…
ydongchoi Jul 16, 2024
1ea581e
[feature] Added Authentication and Configured JWT in Ioc Container.
ydongchoi Jul 16, 2024
0ce3cf6
[fix] Applied Authentication Service in AccountController.
ydongchoi Jul 16, 2024
754cb0d
[feature] Added Authorize attribute to controller in FinancialsContro…
ydongchoi Jul 16, 2024
00132e5
BlazorGDB and LibraryGDB
medhatelmasry Jul 17, 2024
82450b7
[feature] Added Token Dto for transferring data using api.
ydongchoi Jul 18, 2024
aa4d1c5
[feature] Added RefershToken, Expiry Time Column in ApplicationIdenti…
ydongchoi Jul 18, 2024
731a6e9
[feature] Add EntityFramework Tool to use Add-Migration and Update-Da…
ydongchoi Jul 18, 2024
a529bfe
[feature] Added RefreshToken in Authentication Servic.
ydongchoi Jul 18, 2024
e8e9035
[fix] Modified SignIn Action Method to use tokenDto.
ydongchoi Jul 18, 2024
073a25d
[feature] Implemented api/token/refresh endpoint to refresh token whe…
ydongchoi Jul 19, 2024
d5ea5c1
[refactor] Refactored add Db Context to ConfigureSqlContext Method in…
ydongchoi Jul 21, 2024
3754744
[refactor] Refactored code to ConfigureIdentity Method in Program and…
ydongchoi Jul 21, 2024
a2943e1
[refactor] Refactored code to ConfigureCors in Progam and ServiceExte…
ydongchoi Jul 21, 2024
0a5c248
fixed QuickGrid CSS
medhatelmasry Jul 22, 2024
ebd5b74
[chore] Excluded appsettings.Development.json.
ydongchoi Jul 22, 2024
523dffc
[fix] Modified method getting SECRET Key Value from system environmen…
ydongchoi Jul 22, 2024
f698f0e
Merge pull request #36 from medhatelmasry/34-implement-authentication…
medhatelmasry Jul 23, 2024
59275e4
[fix] Modified code that get values of jwt settings considering azure…
ydongchoi Jul 23, 2024
920c150
added setting for super org name
medhatelmasry Jul 23, 2024
49ff594
[fix] Modified code to use values of appsettings in azure.
ydongchoi Jul 24, 2024
81ac8d0
Merge pull request #38 from medhatelmasry/34-implement-authentication…
medhatelmasry Jul 24, 2024
3e9287b
added Blazor project to solution
medhatelmasry Jul 24, 2024
618c760
Add or update the Azure App Service build and deployment workflow config
medhatelmasry Jul 24, 2024
faefa24
search & replace API url in blazor yml
medhatelmasry Jul 24, 2024
b7aaecf
debug info in blazor yml
medhatelmasry Jul 24, 2024
7ff7b7c
working directory in Blazor YML
medhatelmasry Jul 24, 2024
6e8eb35
moved @rendermode InteractiveServer from App.razot to Routes.razor
medhatelmasry Jul 25, 2024
d623bc6
Blazor SSR
medhatelmasry Jul 26, 2024
64f1381
deleted extra sln files
medhatelmasry Jul 26, 2024
83a1282
different routes for two ChartOfAccounts.razor
medhatelmasry Jul 26, 2024
93756e3
renamed blazor .yml to .gold
medhatelmasry Jul 26, 2024
e2638d9
diabled api & mvc yml
medhatelmasry Jul 26, 2024
9daf292
Add or update the Azure App Service build and deployment workflow config
medhatelmasry Jul 26, 2024
d8d84d3
updated gdbblazor.yml to use the blazor prj
medhatelmasry Jul 26, 2024
765d290
added blazor menu
medhatelmasry Jul 26, 2024
0fe0d5b
fixed error in blazor yml file
medhatelmasry Jul 26, 2024
eda32fe
enabled MVC and MVC workflow files
medhatelmasry Jul 26, 2024
695f47c
workflow .yml.disable to .yml
medhatelmasry Jul 26, 2024
5e078e2
tried 3 types of render mode on login.razor
medhatelmasry Jul 26, 2024
9ced2ab
fixed chart-of-accounts in client blazor project
medhatelmasry Jul 26, 2024
df5742d
Replaced chart of accounts in the MVC app with a blazor component.
medhatelmasry Jul 29, 2024
f15dee1
[fix] Removed active for solving the error that remains tab_1 after c…
ydongchoi Jul 29, 2024
a5e6e23
[feature] Add New Tax Button to Create Tax Info.
ydongchoi Jul 29, 2024
e79c624
tried to fix wasm
medhatelmasry Jul 30, 2024
8429868
[feature] Created AddNewTax Page when tax group and item tax group wa…
ydongchoi Jul 31, 2024
fc3adae
[feature] Created GetView of AddNewTax and Post Action to Api in TaxC…
ydongchoi Jul 31, 2024
5692d6f
[feature] Created TaxForCreation Dto for between mvc app and api server.
ydongchoi Jul 31, 2024
9c19bf4
[feature] Created addnewtax action method to insert new tax to tax re…
ydongchoi Jul 31, 2024
0593180
[feature] Added Button to create TaxGroup and Item Tax Group.
ydongchoi Jul 31, 2024
a29fc78
[feature] Added Modal to create TaxGroup and Item Tax Group.
ydongchoi Jul 31, 2024
850bba9
[feature] Added Edit, Delete Button in Tax Table.
ydongchoi Jul 31, 2024
6b4c199
[feature] Added feature that pass taxId in table row to DeleteTax Act…
ydongchoi Aug 1, 2024
010a6c6
[feature] Created DeleteTax Action Method in TaxController of MVC app.
ydongchoi Aug 1, 2024
f8ba03b
[feature] Created DeleteTax in TaxController of Api.
ydongchoi Aug 1, 2024
ae22e8f
[feature] Created DeleteTax Method in AdministrationService.
ydongchoi Aug 1, 2024
ae664d4
[fix] Changed taxId to id to solve synyax error unmatched.
ydongchoi Aug 1, 2024
c03e798
[fix] removed the code related to popover in script tag.
ydongchoi Aug 2, 2024
66f6bd0
[feature] Implemented updateTax function to transfer tax-related data…
ydongchoi Aug 2, 2024
bf30809
[refactor] Refactor AddNewTax in Controller.
ydongchoi Aug 3, 2024
4e7cc67
[feature] Added AutoMapper for mapping between Dto and Entity.
ydongchoi Aug 3, 2024
eeaf6ea
[fix] changed CreateTax for using AutoMapper.
ydongchoi Aug 4, 2024
2c99408
[fix] modified mapper parameter.
ydongchoi Aug 4, 2024
13677e2
[feature] Added Validation Filter for AddNewTax action method.
ydongchoi Aug 5, 2024
0f702a3
[feature] Added deletetax action method in TaxController.
ydongchoi Aug 5, 2024
d2512cb
[feature] Added deletetax and edittax action method in TaxController.
ydongchoi Aug 5, 2024
48ef003
[chore] Removed MappingProfile class.
ydongchoi Aug 5, 2024
ef0b1f2
[fix] refactored Edit Tax Action method and added validation filter.
ydongchoi Aug 6, 2024
91a65a2
[fix] CreateMap for mapping TaxDto to TaxEntity,
ydongchoi Aug 6, 2024
b15d57b
[chore] Removed Required Data Annotation.
ydongchoi Aug 6, 2024
add2ae1
[feature] Created EditTax Method and fixed CreateTax Method in Admini…
ydongchoi Aug 6, 2024
43f83bf
[fix] Added Include to add multiple entities.
ydongchoi Aug 6, 2024
d363625
[feature] Created Edit Tax Page, Action Method, View Model.
ydongchoi Aug 6, 2024
86c2545
[chore] Modified accountgo.sln.
ydongchoi Aug 6, 2024
62346aa
[feature] Created check logic wheter Tax data already exists or not.
ydongchoi Aug 6, 2024
434efcd
[feature] Added the feature creating TaxGroup, ItemTaxGroup in Accoun…
ydongchoi Aug 7, 2024
5cff546
[feature] Added the feature creating TaxGroup and ItemTaxGroup in Api…
ydongchoi Aug 7, 2024
e4dd23e
[fix] added ; to fix error.
ydongchoi Aug 7, 2024
1d35f8b
[featue] Added ViewModel for Tax System.
ydongchoi Aug 8, 2024
fb74d07
[feature] Added AutoMapper for mapping between Dto and View Model.
ydongchoi Aug 8, 2024
f08fb3e
[feature] Added span tag for value Validation in EditTax Page.
ydongchoi Aug 8, 2024
b0e1447
[feature] Applied Mapper and Map Between Dto and ViewModel.
ydongchoi Aug 8, 2024
83a3ea9
[feature] Added ModelState Validation Logic in AddNewTax action method.
ydongchoi Aug 11, 2024
b204246
[fix] Changed class in span tag for validation.
ydongchoi Aug 11, 2024
081f346
[fix] Changed TaxName, TaxCode MaxLength.
ydongchoi Aug 11, 2024
55fa6bb
[feature] Added DeleteTaxGroup and ItemTaxGroup feature in AccountGoW…
ydongchoi Aug 12, 2024
e1d05be
updated nullable in projects dto & api
medhatelmasry Aug 12, 2024
208261e
fixed nullables
medhatelmasry Aug 12, 2024
09d1094
[fix] Removed the condition that finds the tax that has same rate.
ydongchoi Aug 13, 2024
ffb1ab8
edits on Tax System
medhatelmasry Aug 13, 2024
951c019
[feature] Applied Result Pattern to AddNewTax Service.
ydongchoi Aug 13, 2024
5df00ea
[feature] Applied Result Pattern to Delete Tax/TaxGroup/Item TaxGroup…
ydongchoi Aug 14, 2024
390db60
[feature] Applied Reulst Patternto Edit Tax Feature.
ydongchoi Aug 14, 2024
c7e9b57
[feature] Added Async Features to Tax System.
ydongchoi Aug 15, 2024
8894baf
[fix] Changed to the code of ChartOfAccounts.razor in endpoint_sahil …
ydongchoi Aug 15, 2024
c08cf64
Merge branch 'endpoint_sahil' into 24-adddeleteedit-taxes
ydongchoi Aug 15, 2024
8d1a2be
Merge pull request #41 from medhatelmasry/24-adddeleteedit-taxes
medhatelmasry Aug 15, 2024
0ffdc4b
Display Name = Fully Exempt
medhatelmasry Aug 15, 2024
d50d837
[fix] Changed addRowBtn to nullable.
ydongchoi Aug 17, 2024
975edff
[fix] Changed danger to text-danger in class of tag.
ydongchoi Aug 17, 2024
9d1656b
[fix] Added Sales to Endpoint to get SalesInvoice View.
ydongchoi Aug 18, 2024
aa0df11
[fix] changed href when clicking close button.
ydongchoi Aug 18, 2024
336e9a3
[fix] Changed value in a tag to Edit.
ydongchoi Aug 18, 2024
96d1a05
[fix] Activate Form tag to edit sales invoice.
ydongchoi Aug 18, 2024
a187d72
[fix] Added SalesInvoiceLines id to Dto for edit Sales Invoice.
ydongchoi Aug 19, 2024
ddf5771
[feature] Added style to selected row.
ydongchoi Aug 19, 2024
a0354a4
[fix] Changed Style in SalesInvoices.
ydongchoi Aug 19, 2024
d383926
[fix] Modified AddSalesInvoice API Endpoint.
ydongchoi Aug 21, 2024
b7aea28
[feature] Added Mapper for mapping SalesInvoiceDto to SalesOrder and …
ydongchoi Aug 21, 2024
44b9d04
[feature] Added CreateSalesInvoice Action Method in SalesController.
ydongchoi Aug 21, 2024
09ac418
[feature] Added CreateSalesInvoice Service.
ydongchoi Aug 21, 2024
ef38b07
[feature] Added input tag for storing No, PaymentTermId.
ydongchoi Aug 22, 2024
9c455f7
[feature] Created SalesInvoice Post Action Method for Updating SalesI…
ydongchoi Aug 22, 2024
86c28d7
[feature] Added Logic considering Update of SalesInvoice in AutoMapper.
ydongchoi Aug 22, 2024
b104836
[feature] Added UpdateSalesInvoice Action method.
ydongchoi Aug 22, 2024
7083f93
[feature] Implemented UpdateSalesInvoice method in Service.
ydongchoi Aug 22, 2024
eab05b6
[fix] Added No Property in salesInvoiceDto.
ydongchoi Aug 22, 2024
f1a5191
[feature] Added Delete feature in SalesInvoices.
ydongchoi Aug 23, 2024
1ea0aa7
[feature] Added Delete Feature of SalesInvoice in API.
ydongchoi Aug 23, 2024
137f9aa
[feature] Commented Audit feature to implement that feature later.
ydongchoi Aug 23, 2024
cb220af
[fix] Added Logic If Model State is not valid.
ydongchoi Aug 24, 2024
a3b15e8
[feature] Added SalesInvoice Validation using span tag.
ydongchoi Aug 24, 2024
9e0c002
[fix] removed required to maintain consistency of validation msg.
ydongchoi Aug 24, 2024
23abbaa
[feature] Added null check logic of amount and quantity.
ydongchoi Aug 24, 2024
4936ff2
[feature] Added Validation Check and Error Message.
ydongchoi Aug 24, 2024
22bbe8f
sales invoice total two decimal places
medhatelmasry Aug 26, 2024
0a5ef52
[fix] Added Viewbag.TotalAmount to prevent null values ​​when renderi…
ydongchoi Aug 26, 2024
6b75fff
Merge pull request #42 from medhatelmasry/22-bug-in-accounts-receivab…
medhatelmasry Aug 26, 2024
8a18d20
I noticed there were some small syntax errors in the account go project.
breader1 Nov 8, 2024
ad6f541
Merge pull request #49 from medhatelmasry/breader-generic-fixes
medhatelmasry Nov 8, 2024
9da86d9
Update gdbblazor.yml
medhatelmasry Nov 8, 2024
1f6d6e5
Update gdbblazor.yml
medhatelmasry Nov 8, 2024
f8aea2f
Fixed the issue 39-refresh-token-ui
jchung150 Dec 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
19 changes: 0 additions & 19 deletions .github/workflows/build-deploy-azure.yml

This file was deleted.

76 changes: 76 additions & 0 deletions .github/workflows/gdb-blazor.yml.gold
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy Good Deed Books BLAZOR project to Azure

on:
push:
branches:
- endpoint_sahil
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'

- name: Build with dotnet
working-directory: ./src/BlazorGDB/BlazorGDB
run: dotnet build --configuration Release

- name: dotnet publish
working-directory: ./src/BlazorGDB/BlazorGDB
run: dotnet publish BlazorGDB.csproj -c Release -o ${{env.DOTNET_ROOT}}/myapp

- name: sanity check
run: |
echo "+++++++++++++++++++++++++ where am I? ++++++++++++++++++++++++"
pwd
echo "++++++++++++++++++++++++ what's in current directory? ++++++++"
ls -al
echo "+++++ what's in the ${{env.DOTNET_ROOT}}/myapp directory? ++++"
ls -al ${{env.DOTNET_ROOT}}/myapp

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

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write #This is required for requesting the JWT

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: .net-app

- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_6A854C1CD0C74473AD2E3B9F843CC396 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_224A065E650B4D5F9EB2329B6B2F1716 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_570B031F0942445C8E479905EE706F43 }}

- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v3
with:
app-name: 'gdb-blazor'
slot-name: 'Production'
package: .

91 changes: 91 additions & 0 deletions .github/workflows/gdb_api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy Good Deed Books API project to Azure

on:
push:
branches:
- endpoint_sahil
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.x'
include-prerelease: true

- name: Install dotnet-ef tool
run: |
dotnet tool install --global dotnet-ef
echo "++++ dotnet-ef version"
dotnet ef --version

- name: Build with dotnet
run: |
echo "++++ dotnet restore"
dotnet restore
echo "++++ dotnet build"
dotnet build --configuration Release

- name: Add migrations
run: |
echo "++++ current directory"
pwd
echo "++++ add ApplicationIdentityDbContext migration M1"
dotnet ef migrations add M1 --project ./src/Api/ --startup-project ./src/Api/Api.csproj --msbuildprojectextensionspath .build/obj/Api/ --context ApplicationIdentityDbContext --output-dir Data/Migrations/IdentityDb
echo "++++ add ApiDbContext migration M2"
dotnet ef migrations add M2 --project ./src/Api/ --startup-project ./src/Api/Api.csproj --msbuildprojectextensionspath .build/obj/Api/ --context ApiDbContext --output-dir Data/Migrations/ApiDb
echo "++++ contents of ./src/Api/Data/Migrations/IdentityDb"
ls ./src/Api/Data/Migrations/IdentityDb
echo "++++ contents of ./src/Api/Data/Migrations/ApiDb"
ls ./src/Api/Data/Migrations/ApiDb

- name: dotnet publish
run: |
echo "++++ contents of dotnet publish ./src/Api/Api.csproj"
dotnet publish ./src/Api/Api.csproj -c Release -o ${{env.DOTNET_ROOT}}/myapp

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

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write #This is required for requesting the JWT

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v3
with:
name: .net-app

- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_543326D87AEF459D91E15D756166A5AC }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_D57EB2BACAA54EE2AB97F696E8E99A4B }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_3C797712E9A047958FF5C9BB540F0543 }}

- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'goodbooksapi'
slot-name: 'Production'
package: .

101 changes: 101 additions & 0 deletions .github/workflows/gdb_mvc_tar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy Good Deed Books MVC project to Azure

on:
push:
branches:
- endpoint_sahil
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.x'
include-prerelease: true

- name: Build with dotnet
run: dotnet build --configuration Release

- name: dotnet publish
run: dotnet publish ./src/AccountGoWeb/AccountGoWeb.csproj -c Release -o ${{env.DOTNET_ROOT}}/myapp

- name: Archive production artifacts
run: |
echo "+++++++++++++++++++++++++ where am I? ++++++++++++++++++++++++"
pwd
echo "+++++++++++++++++++++++++ save current directory into a variable dir ++++"
dir=$(pwd)
echo "+++++++++ what is in variable dir ++++++++++++++"
echo $dir
echo "++++++++++++++++++++++++ what's in current directory? ++++++++"
ls -al
echo "+++++ what's in the ${{env.DOTNET_ROOT}}/myapp directory? ++++"
ls -al ${{env.DOTNET_ROOT}}/myapp
echo "+++++ change directoiry to ${{env.DOTNET_ROOT}}/myapp ++++"
cd ${{env.DOTNET_ROOT}}/myapp
echo "+++++++++++++++++++++++++ where am I? ++++++++++++++++++++++++"
pwd
echo "+++++++++++++++++++++++++ compress current directory and save in $dir/my_artifact.tar.gz ++++"
tar -czvf $dir/my_artifact.tar.gz .
echo "+++++++++++++++++++++++++ change dir to to $dir directory ++++"
cd $dir
echo "+++++++++++++++++++++++++ where am I? ++++++++++++++++++++++++"
pwd
echo "++++++++++++++++++++++++ what's in $dir directory? ++++++++"
ls -al

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
with:
name: .net-app
path: my_artifact.tar.gz

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write #This is required for requesting the JWT

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v3
with:
name: .net-app

- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_28108B2CCE81480BB0295B2554B37231 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_9ED1B649A03F45E7B34C3BE1217B6BDE }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_A41842A963384E4BAB26580EEFE65E92 }}

- name: Extract artifacts
run: |
tar -xzvf my_artifact.tar.gz -C .

- name: Print working directory
run: pwd

- name: List directory contents
run: ls -l /home/runner/.dotnet/

- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'good-books'
slot-name: 'Production'
package: .

67 changes: 67 additions & 0 deletions .github/workflows/gdbblazor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy Good Deed Books BLAZOR project to Azure

on:
push:
branches:
- endpoint_sahil

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2

- name: Set up .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: '8.0.x'

- name: Restore dependencies
run: dotnet restore ./src/BlazorGDB/BlazorGDB/BlazorGDB.csproj

- name: Build
run: dotnet build ./src/BlazorGDB/BlazorGDB/BlazorGDB.csproj --configuration Release

- name: Publish
run: dotnet publish ./src/BlazorGDB/BlazorGDB/BlazorGDB.csproj --configuration Release --output ${{ github.workspace }}/myapp

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
with:
name: .net-app
path: ${{ github.workspace }}/myapp

deploy:
runs-on: windows-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write #This is required for requesting the JWT

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v3
with:
name: .net-app

- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_C7C01847F7FC4BBFB72DEAC64242E5A4 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_21069DC407434A3591399953BE45ED78 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_CC5D4E473B8345BA854EA230A48D8D20 }}

- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v3
with:
app-name: 'gdbblazor'
slot-name: 'Production'
package: .

Loading