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: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ ControlsComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(ControlsComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/components/controls/controls.component.ts b/src/app/components/controls/controls.component.ts new file mode 100644 index 0000000..84173c8 --- /dev/null +++ b/src/app/components/controls/controls.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-controls', + templateUrl: './controls.component.html', + styleUrls: ['./controls.component.scss'] +}) +export class ControlsComponent implements OnInit { + + constructor() { } + + ngOnInit() { + } + +} diff --git a/src/app/components/home/home.component.html b/src/app/components/home/home.component.html new file mode 100644 index 0000000..5f2c53f --- /dev/null +++ b/src/app/components/home/home.component.html @@ -0,0 +1 @@ +

home 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: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ HomeComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(HomeComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/components/home/home.component.ts b/src/app/components/home/home.component.ts new file mode 100644 index 0000000..f56c8c1 --- /dev/null +++ b/src/app/components/home/home.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-home', + templateUrl: './home.component.html', + styleUrls: ['./home.component.scss'] +}) +export class HomeComponent implements OnInit { + + constructor() { } + + ngOnInit() { + } + +} diff --git a/src/app/components/nav/nav.component.html b/src/app/components/nav/nav.component.html new file mode 100644 index 0000000..f23d834 --- /dev/null +++ b/src/app/components/nav/nav.component.html @@ -0,0 +1 @@ +

nav 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; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ NavComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(NavComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/components/nav/nav.component.ts b/src/app/components/nav/nav.component.ts new file mode 100644 index 0000000..2cc48b6 --- /dev/null +++ b/src/app/components/nav/nav.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-nav', + templateUrl: './nav.component.html', + styleUrls: ['./nav.component.scss'] +}) +export class NavComponent implements OnInit { + + constructor() { } + + ngOnInit() { + } + +} diff --git a/src/app/services/audio.service.spec.ts b/src/app/services/audio.service.spec.ts new file mode 100644 index 0000000..4f038ca --- /dev/null +++ b/src/app/services/audio.service.spec.ts @@ -0,0 +1,12 @@ +import { TestBed } from '@angular/core/testing'; + +import { AudioService } from './audio.service'; + +describe('AudioService', () => { + beforeEach(() => TestBed.configureTestingModule({})); + + it('should be created', () => { + const service: AudioService = TestBed.get(AudioService); + expect(service).toBeTruthy(); + }); +}); diff --git a/src/app/services/audio.service.ts b/src/app/services/audio.service.ts new file mode 100644 index 0000000..f7f1c41 --- /dev/null +++ b/src/app/services/audio.service.ts @@ -0,0 +1,9 @@ +import { Injectable } from '@angular/core'; + +@Injectable({ + providedIn: 'root' +}) +export class AudioService { + + constructor() { } +} diff --git a/src/app/services/data.service.spec.ts b/src/app/services/data.service.spec.ts new file mode 100644 index 0000000..a5283fc --- /dev/null +++ b/src/app/services/data.service.spec.ts @@ -0,0 +1,12 @@ +import { TestBed } from '@angular/core/testing'; + +import { DataService } from './data.service'; + +describe('DataService', () => { + beforeEach(() => TestBed.configureTestingModule({})); + + it('should be created', () => { + const service: DataService = TestBed.get(DataService); + expect(service).toBeTruthy(); + }); +}); diff --git a/src/app/services/data.service.ts b/src/app/services/data.service.ts new file mode 100644 index 0000000..750557b --- /dev/null +++ b/src/app/services/data.service.ts @@ -0,0 +1,9 @@ +import { Injectable } from '@angular/core'; + +@Injectable({ + providedIn: 'root' +}) +export class DataService { + + constructor() { } +}