diff --git a/README.md b/README.md index 0a31156..b75682d 100644 --- a/README.md +++ b/README.md @@ -1,27 +1,11 @@ -# Music +# Music-corner -This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.0.6. +Music-corner is an online music manager for your music library. Install the client-side on a webserver, and install the server-side on the server where your music is located. This machine needs PHP >= 7.2. This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.0.6. ## Development server Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. -## Code scaffolding - -Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. - ## Build Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build. - -## Running unit tests - -Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). - -## Running end-to-end tests - -Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). - -## Further help - -To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index d425c6f..663c4ec 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -1,7 +1,10 @@ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; +import { HomeComponent } from './components/home/home.component'; -const routes: Routes = []; +const routes: Routes = [ + { path: '', component: HomeComponent } +]; @NgModule({ imports: [RouterModule.forRoot(routes)], diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 2c3ba29..555d2df 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -3,10 +3,16 @@ import { NgModule } from '@angular/core'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; +import { HomeComponent } from './components/home/home.component'; +import { ControlsComponent } from './components/controls/controls.component'; +import { NavComponent } from './components/nav/nav.component'; @NgModule({ declarations: [ - AppComponent + AppComponent, + HomeComponent, + ControlsComponent, + NavComponent ], imports: [ BrowserModule, diff --git a/src/app/components/controls/controls.component.html b/src/app/components/controls/controls.component.html new file mode 100644 index 0000000..5aa68c2 --- /dev/null +++ b/src/app/components/controls/controls.component.html @@ -0,0 +1 @@ +
controls works!
diff --git a/src/app/components/controls/controls.component.scss b/src/app/components/controls/controls.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/components/controls/controls.component.spec.ts b/src/app/components/controls/controls.component.spec.ts new file mode 100644 index 0000000..f66ed2c --- /dev/null +++ b/src/app/components/controls/controls.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ControlsComponent } from './controls.component'; + +describe('ControlsComponent', () => { + let component: ControlsComponent; + let fixture: ComponentFixturehome works!
diff --git a/src/app/components/home/home.component.scss b/src/app/components/home/home.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/components/home/home.component.spec.ts b/src/app/components/home/home.component.spec.ts new file mode 100644 index 0000000..490e81b --- /dev/null +++ b/src/app/components/home/home.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { HomeComponent } from './home.component'; + +describe('HomeComponent', () => { + let component: HomeComponent; + let fixture: ComponentFixturenav works!
diff --git a/src/app/components/nav/nav.component.scss b/src/app/components/nav/nav.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/components/nav/nav.component.spec.ts b/src/app/components/nav/nav.component.spec.ts new file mode 100644 index 0000000..c386910 --- /dev/null +++ b/src/app/components/nav/nav.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { NavComponent } from './nav.component'; + +describe('NavComponent', () => { + let component: NavComponent; + let fixture: ComponentFixture