LoginSignup
1
2

More than 3 years have passed since last update.

【編集中】Webアプリケーション開発環境構築ねた

Last updated at Posted at 2020-03-08

はじめに

環境構築の完成は以下
 ・クライアント:Angular
 ・サーバ   :ASP.NET WebAPI
 ・データベース:Oracle

TODO

IIS環境の構築

◆WINDOWS10にてIIS(WEBサーバー)をインストール・構成する方法
 http://www.floatgarden.net/server/windows10_iis_server.html
  ※IISのインストールオプションは一旦このサイトに合わせたが、後でチューニングしないとだめかも...

Client@Angular

angular_dev.bat
cd D:\Angular
ng new my-app5 --style=scss
cd D:\Angular\my-app5
ng serve
# 「http://localhost:4200/」参照
ng build --prod --base-href /my-app5/.
# distをIISに配置
# 「http://localhost/my-app5/」参照

Server@ASP.NET WebAPI

◆REST Webサービスの作成が僕には難しすぎたので、誰にでも分かるよう手順を残す。
 https://qiita.com/yz2cm/items/8e7790026b7697843219
  ※まずはこれで(ClientおよびDBなし)

■発行/配置
 web.config⇒現状、変更不要
 ※配置後、アプリケーションへの変換が必要
 ※下記にアクセスして結果が表示されればOK
  http://localhost/ProductsApp1/api/products/

◆Learning Web API 2 With Entity Framework 6 Code First Migrations
 https://www.c-sharpcorner.com/article/learning-web-api-2-with-entity-framework-6-code-first-migrations/
 ※Server/Database連携(ただしDataBaseはSQL Server LocalDB)

◆CRUD Operations With ASP.NET Core Using Angular 5 And ADO.NET
 https://www.c-sharpcorner.com/article/crud-operations-with-asp-net-core-using-angular-5-and-ado-net/
 ※ASP.NET Coreだが、これはAngularで作成しているので比較用サンプルとして作成しておきたい

AutoMapper

DI(SimpleInjector)

Signal-R

WCF(Server/Client)

※Windows Service連携も

DataBase@Oracle

サイト情報

ベース

◆ASP.NET MVC ClockUpTips
 https://aspnet-mvc.clock-up.jp/
  ※ベースとなりそうな情報がたくさん

◆ASP.NET Web API 2 (c#) の概要します。
 https://docs.microsoft.com/ja-jp/aspnet/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api

◆続・REST Webサービスの作成が僕には難しすぎたので、誰にでも分かるよう手順を残す。(クライアント編)
 https://qiita.com/yz2cm/items/46d8e87a39f844904ea7
◆続2・REST Webサービス作成メモ(IIS ExpressのSSL有効化編)
 https://qiita.com/yz2cm/items/8c0bbbf16414b072e104
◆続3・REST Webサービス作成メモ(Web.configの暗号化)
 https://qiita.com/yz2cm/items/5702842f84e7a54a2115

◆空のプロジェクトからASP.NET MVC5 EntityFramework6 for Oracleを試す
 https://qiita.com/yaju/items/3b1b5fb77ff684d564f9
◆空のプロジェクトからASP.NET MVC5 EntityFramework6 for Oracleを試す(登録・更新・削除)
 https://qiita.com/yaju/items/9ce95f3bc741d1af3dd7
  ※サーバ側のWebAPI/EntityFramework/Oracle連携のサンプル

◆ASP.NETでWebAPIを作成した際のメモ書き
 https://qiita.com/Mizuki901/items/53b1c257f94b81ba11be

◆Build a CRUD App with ASP.NET Framework 4.x Web API and Angular
 https://developer.okta.com/blog/2018/07/27/build-crud-app-in-aspnet-framework-webapi-and-angular

◆Visual Studio 2017からSQL Server Express 2016 LocalDBを使ってみる
 https://qiita.com/akabei/items/7f62056e44dd2d44f703
◆Visual Studio から SQL Server LocalDB へ接続するためのアレコレ
 https://blog.clock-up.jp/entry/2016/07/27/vs-sqlserver-localdb
  ※大体サンプルがSQL Serverばっかりなので、一応調査

エラー情報

◆Entity Frameworkでコードファーストをする時の注意点
 https://qiita.com/Kokudori/items/8f1889d4b5a66df434de
  ※「System.InvalidOperationException: The model backing the 'xxxContext' context has changed since the database was created」

◆ASP.NET マイグレーションが失敗した時
 https://qiita.com/Nobuo/items/a7e188e69724c8af8c5e
  ※「To access Web sites on the local IIS Web server, you must run Visual Studio under an Administrator account.」

◆【ASP.NET】「JSON リクエストが大きすぎるため、逆シリアル化できませんでした。」の対応
 https://qiita.com/yaju/items/ff3ad08f7970404191f6
  ※「The JSON request was too large to be deserialized.」

◆ASP.NET WebAPIで「同一URL・HTTPメソッド違い」のControllerが実行時エラーとなる場合の対処法
 https://qiita.com/e_desutomo/items/bcfe8a868bd265563c0a

その他

◆WebアプリからOracleに接続するconnectionStrings(tnsname.ora不要)
 https://qiita.com/lainzero/items/32f424c98544c7a1b2fe

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2