The Readme asumes you operate in the
project_root/app-folder. This document contains information about how to develop our web app.
yarn- for package managementangular-cli- used to build and run our app, can be installed widthyarn global add @angular/cli- a editor with TypeScript support, Visual Studio Code or JetBrains WebStorm are recommended
open a terminal and run yarn install, this will install all necessary dependencies
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.
Important: replace basePath in src/app/app.module.ts with the adress of the REST Api you want to develop against.
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.
In the project root folder run mvn install -P build to build everything toghether. Now you can run the whole stack with java -jar project_root/server/target/server-1.0-SNAPSHOT.jar. The WebApp is reachable under http://localhost:8084 if you use default server settings.
- latest Version of swagger-codegen
- Change line
4in theapi-genscript to the location of your codegen jar file or binary and the url of your REST api - run
./api-gen