Giter Club home page Giter Club logo

angular-aspnetcore-seed's Introduction

Ultimate Courses

angular-aspnetcore-seed

Angular 7.2.7 / ASP.NET Core 2.2 Seed Project with full VS Code debugging

Installation

  1. Clone the project into the folder of your choice - git clone https://github.com/wesleygrimes/angular-aspnetcore-seed.git
  2. Remove the .git folder - rm -rf .git
  3. Initialize a new repository in the directory - git init
  4. Install NPM Packages - (cd ClientApp && npm install)
  5. Restore NuGet Packages - dotnet restore
  6. Launch Visual Studio Code - code .
  7. Debugging Server and Client code can be done by hitting F5

Structure of the Project

Back-End

The back-end is an ASP.NET Core 2.2 WebAPI application.

  • Controllers - Add new endpoints by creating or updating Controllers in this directory
  • Models - Add data models in this folder
  • Interfaces - Add any interfaces that will be implemented in this directory
  • Services - Add any services in this directory. Typically services will be making the direct HttpClient and Database interactions
  • Startup.cs - Startup configuration exists here, as well as registration of any data services that will be injected into Controllers at runtime

Front-End

You will find the front-end code in the ClientApp directory. This is a fully compatible Angular 7.2.0 CLI application. This means from within the ClientApp folder full ng generate capabilities are available and encouraged.

Running the project

This is an ASP.NET Core 2.2 project with an Angular 6 front-end. The dotnet project is configured to automatically build the Angular project when dotnet run is executed. This means that you do not need to worry about running ng serve -o manually. It also runs in hot reload mode so any changes made to the dotnet code and/or the angular code will cause an automatic reload and refresh in the browser.

Debugging from Visual Studio Code

Included with this project is a .vscode/launch.json file and a .vscode/tasks.json file. This means by default you can run F5 and hit breakpoints in both server and client side code. Sweet!!

If you have issues when first running make sure that the Full stack debug target is chosen.

Contributions Welcome

This is a very informal project and any and all pull requests with improvements will be accepted. I look forward to your feedback!

Angular Training

If you are new or experienced with Angular I highly recommend that you head over to Ultimate Angular and signup for the Angular Framework courses. Follow the link in the banner to do so.

angular-aspnetcore-seed's People

Contributors

wesleygrimes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.