Skip to content
Snippets Groups Projects
Commit de1fcffd authored by KPOTY Kpotivi's avatar KPOTY Kpotivi
Browse files

Revert "Merge branch 'feature/add-openapi-generation' into 'main'"

This reverts merge request !2
parent e2b5f21f
No related branches found
No related tags found
No related merge requests found
Showing
with 152 additions and 7 deletions
...@@ -3,9 +3,8 @@ ...@@ -3,9 +3,8 @@
"version": "0.0.0", "version": "0.0.0",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"generate-api": "rm -rf openapi-generator-cli.jar && curl --insecure https://repo.maven.apache.org/maven2/org/openapitools/openapi-generator-cli/6.6.0/openapi-generator-cli-6.6.0.jar -o openapi-generator-cli.jar && java -jar openapi-generator-cli.jar generate -i ../backend/src/main/java/com/shop/sphere/api/shop-sphere.yaml -g typescript-angular -o ./src/api --additional-properties=stringEnums=true,ngVersion=16.2.11", "start": "ng serve",
"start": "npm run generate-api && ng serve --port ", "build": "ng build",
"build": "npm run generate-api && ng build",
"watch": "ng build --watch --configuration development", "watch": "ng build --watch --configuration development",
"test": "ng test" "test": "ng test"
}, },
......
...@@ -3,11 +3,28 @@ import { BrowserModule } from '@angular/platform-browser'; ...@@ -3,11 +3,28 @@ import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module'; import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component'; import { AppComponent } from './app.component';
import { ProductsComponent } from './components/products/products.component';
import { ProductComponent } from './components/product/product.component';
import { OrdersComponent } from './components/orders/orders.component';
import { OrderComponent } from './components/order/order.component';
import { BuyerComponent } from './components/buyer/buyer.component';
import { AdminComponent } from './components/admin/admin.component';
@NgModule({ @NgModule({
declarations: [AppComponent], declarations: [
imports: [BrowserModule, AppRoutingModule], AppComponent,
ProductsComponent,
ProductComponent,
OrdersComponent,
OrderComponent,
BuyerComponent,
AdminComponent
],
imports: [
BrowserModule,
AppRoutingModule
],
providers: [], providers: [],
bootstrap: [AppComponent], bootstrap: [AppComponent]
}) })
export class AppModule { } export class AppModule { }
<p>admin works!</p>
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { AdminComponent } from './admin.component';
describe('AdminComponent', () => {
let component: AdminComponent;
let fixture: ComponentFixture<AdminComponent>;
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [AdminComponent]
});
fixture = TestBed.createComponent(AdminComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component } from '@angular/core';
@Component({
selector: 'app-admin',
templateUrl: './admin.component.html',
styleUrls: ['./admin.component.scss']
})
export class AdminComponent {
}
<p>buyer works!</p>
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { BuyerComponent } from './buyer.component';
describe('BuyerComponent', () => {
let component: BuyerComponent;
let fixture: ComponentFixture<BuyerComponent>;
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [BuyerComponent]
});
fixture = TestBed.createComponent(BuyerComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component } from '@angular/core';
@Component({
selector: 'app-buyer',
templateUrl: './buyer.component.html',
styleUrls: ['./buyer.component.scss']
})
export class BuyerComponent {
}
<p>order works!</p>
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { OrderComponent } from './order.component';
describe('OrderComponent', () => {
let component: OrderComponent;
let fixture: ComponentFixture<OrderComponent>;
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [OrderComponent]
});
fixture = TestBed.createComponent(OrderComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component } from '@angular/core';
@Component({
selector: 'app-order',
templateUrl: './order.component.html',
styleUrls: ['./order.component.scss']
})
export class OrderComponent {
}
<p>orders works!</p>
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { OrdersComponent } from './orders.component';
describe('OrdersComponent', () => {
let component: OrdersComponent;
let fixture: ComponentFixture<OrdersComponent>;
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [OrdersComponent]
});
fixture = TestBed.createComponent(OrdersComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component } from '@angular/core';
@Component({
selector: 'app-orders',
templateUrl: './orders.component.html',
styleUrls: ['./orders.component.scss']
})
export class OrdersComponent {
}
<p>product works!</p>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment