Skip to content

davidikin45/AngularApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 

Repository files navigation

Getting Started with Angular and .NET Core

VS Code Extensions

Creating a new Api and Spa Solution

  1. Create a new directory such as DatingApp
  2. Run the following command
npm install -g @angular/cli@latest
dotnet new webapi -o DatingApp.Api -n DatingApp.Api
dotnet new angular -o DatingApp.Spa
  1. Add a .gitignore to the Api project
.gitignore
.vscode
bin
obj
*.db
  1. Modify app.module.ts to import HttpClientModule
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';

import { AppComponent } from './app.component';
import { ValueComponent } from './value/value.component';

@NgModule({
   declarations: [
      AppComponent,
      ValueComponent
   ],
   imports: [
      BrowserModule,
      HttpClientModule
   ],
   providers: [],
   bootstrap: [
      AppComponent
   ]
})
export class AppModule { }
  1. Install boostrap font-awesome
cd DatingApp.Spa\ClientApp
npm install boostrap font-awesome
  1. Modify styles.css
@import '../node_modules/boostrap/dist/css/bootstrap.min.css';
@import '../node_modules/font-awesome/dist/css/font-awesome.min.css';

Authors

  • David Ikin

About

Angular notes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages