Skip to content

Commit

Permalink
docs: Replace angular-starter reference
Browse files Browse the repository at this point in the history
  • Loading branch information
nileger committed May 3, 2024
1 parent c4b5468 commit 345a556
Show file tree
Hide file tree
Showing 18 changed files with 60 additions and 181 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ RUN npm run build --prod

FROM nginx:1.15.8-alpine

COPY --from=builder /usr/src/app/dist/angular-starter/ /usr/share/nginx/html
COPY --from=builder /usr/src/app/dist/woped-frontend/ /usr/share/nginx/html
106 changes: 4 additions & 102 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,104 +1,6 @@
![81993396-d5142b00-9645-11ea-995f-98342b7d5c8f](https://user-images.githubusercontent.com/7531596/128626297-df86020b-1cdc-43b5-a692-6c4c45534ec1.png)
# WoPeD Webclient

> The Angular starter / boilerplate project to start a new enterprise project.
This repository contains the WoPeD Webclient. <br>
The application has been built based on [angular-starter](https://github.com/wlucha/angular-starter)

[Angular 16](https://angular.io/)
[Angular Material](https://material.angular.io/)
✅ Unit Testing with [Jest](https://jestjs.io/)
✅ End-to-End Testing with [TestCafé](https://testcafe.io/)
✅ Internationalization with [Transloco](https://github.com/ngneat/transloco)
✅ Auto documentation with [Compodoc](https://compodoc.app/)
✅ Provide component examples with [Storybook](https://storybook.js.org/)
✅ Analyse your project with [source-map-explorer](https://www.npmjs.com/package/source-map-explorer)
[Docker](https://www.docker.com/)
[ESLint](https://eslint.org/)
[Prettier](https://prettier.io/)
[Commit Linting](https://github.com/conventional-changelog/commitlint)
[AuditJS](https://www.npmjs.com/package/auditjs) Audit this application using Sonatype OSS Index
✅ Auto-generate a CHANGELOG with [auto-changelog](https://github.com/cookpete/auto-changelog)

<hr>

![Angular16](https://img.shields.io/badge/Angular-16-brightgreen)
[![Build](https://api.travis-ci.org/wlucha/angular-starter.svg?branch=master)](https://travis-ci.org/github/wlucha/angular-starter)
[![MIT](https://img.shields.io/packagist/l/doctrine/orm.svg)]()
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=wlucha_angular-starter&metric=alert_status)](https://sonarcloud.io/dashboard?id=wlucha_angular-starter)
[![Docker Pulls](https://img.shields.io/docker/pulls/wlucha/angular-starter)](https://hub.docker.com/repository/docker/wlucha/angular-starter)
[![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/wlucha/angular-starter)](https://hub.docker.com/repository/docker/wlucha/angular-starter)
[![StackShare](http://img.shields.io/badge/tech-stack-0690fa.svg?style=flat)](https://stackshare.io/wlucha/angular-starter)

## Deploy

[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)

## Demo

[![StackBlitz Demo](https://user-images.githubusercontent.com/7531596/83507657-2424e180-a4c9-11ea-8e4f-b3f8e7d6b4c5.png)](https://stackblitz.com/github/wlucha/angular-starter)

## Install / Development

```bash
# Clone the project
$ git clone https://github.com/wlucha/angular-starter
$ cd angular-starter

# Install dependencies
$ npm install

# Start server
$ npm run start

# Open in browser: http://localhost:4200
```

## Docker Deployment

```bash
# Build Docker image
$ docker build . -t angular-starter

# Run Docker Container
$ docker run -p 3000:80 angular-starter
```

## Docker Hub

https://hub.docker.com/r/wlucha/angular-starter

## Commands

- `npm run start` - Start the app
- `npm run lint` - Lint the project
- `npm run test` - Run unit tests
- `npm run build` - Build the project
- `npm run build:prod` - Build the project in production mode
- `npm run build:prod:stats` - Build the project in product mode with stats
- `npm run analyse` - Analyse bundle with [webpack-bundle-analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer)
- `npm run compodoc` - Generate [compodoc](https://github.com/compodoc/compodoc) documentation
- `npm run version` - Generate changelog
- `npm run prettier` - Format the whole project
- `npm run audit` - Audit this application using Sonatype OSS Index

## License

MIT License

Copyright (c) 2023 Wilfried Lucha

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Navigate to https://woped.github.io/woped-frontend/home to use the WoPeD Webclient.
10 changes: 5 additions & 5 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": 1,
"newProjectRoot": "projects",
"projects": {
"angular-starter": {
"woped-frontend": {
"projectType": "application",
"schematics": {},
"root": "",
Expand All @@ -13,7 +13,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/angular-starter",
"outputPath": "dist/woped-frontend",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
Expand Down Expand Up @@ -62,18 +62,18 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "angular-starter:build"
"browserTarget": "woped-frontend:build"
},
"configurations": {
"production": {
"browserTarget": "angular-starter:build:production"
"browserTarget": "woped-frontend:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "angular-starter:build"
"browserTarget": "woped-frontend:build"
}
},
"lint": {
Expand Down
6 changes: 3 additions & 3 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Angular 14 Starter",
"description": "Angular 14 Starter project with Material, Transloco, Jest & Compodoc",
"repository": "https://github.com/wlucha/angular-starter",
"name": "WoPeD Webclient",
"description": "WoPeD Webclient",
"repository": "https://github.com/woped/woped-frontend",
"keywords": ["angular", "jest", "compodoc", "transloco"]
}
4 changes: 2 additions & 2 deletions documentation.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"propertiesClass": [
{
"name": "title",
"defaultValue": "'angular-starter'",
"defaultValue": "'woped-frontend'",
"deprecated": false,
"deprecationMessage": "",
"type": "string",
Expand All @@ -112,7 +112,7 @@
"description": "",
"rawdescription": "\n",
"type": "component",
"sourceCode": "import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'app-root',\r\n templateUrl: './app.component.html',\r\n styleUrls: ['./app.component.css']\r\n})\r\nexport class AppComponent {\r\n title = 'angular-starter';\r\n}\r\n",
"sourceCode": "import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'app-root',\r\n templateUrl: './app.component.html',\r\n styleUrls: ['./app.component.css']\r\n})\r\nexport class AppComponent {\r\n title = 'woped-frontend';\r\n}\r\n",
"assetsDirs": [],
"styleUrlsData": [
{
Expand Down
4 changes: 2 additions & 2 deletions documentation/coverage.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>angular-starter documentation</title>
<title>woped-frontend documentation</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">

Expand All @@ -13,7 +13,7 @@
<body>

<div class="navbar navbar-default navbar-fixed-top visible-xs">
<a href="./" class="navbar-brand">angular-starter documentation</a>
<a href="./" class="navbar-brand">woped-frontend documentation</a>
<button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button>
</div>

Expand Down
4 changes: 2 additions & 2 deletions documentation/dependencies.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>angular-starter documentation</title>
<title>woped-frontend documentation</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">

Expand All @@ -13,7 +13,7 @@
<body>

<div class="navbar navbar-default navbar-fixed-top visible-xs">
<a href="./" class="navbar-brand">angular-starter documentation</a>
<a href="./" class="navbar-brand">woped-frontend documentation</a>
<button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button>
</div>

Expand Down
4 changes: 2 additions & 2 deletions documentation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>angular-starter documentation</title>
<title>woped-frontend documentation</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">

Expand All @@ -13,7 +13,7 @@
<body>

<div class="navbar navbar-default navbar-fixed-top visible-xs">
<a href="./" class="navbar-brand">angular-starter documentation</a>
<a href="./" class="navbar-brand">woped-frontend documentation</a>
<button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button>
</div>

Expand Down
2 changes: 1 addition & 1 deletion documentation/js/menu-wc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ customElements.define('compodoc-menu', class extends HTMLElement {
<nav>
<ul class="list">
<li class="title">
<a href="index.html" data-type="index-link">angular-starter documentation</a>
<a href="index.html" data-type="index-link">woped-frontend documentation</a>
</li>
<li class="divider"></li>
Expand Down
4 changes: 2 additions & 2 deletions documentation/modules.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>angular-starter documentation</title>
<title>woped-frontend documentation</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">

Expand All @@ -13,7 +13,7 @@
<body>

<div class="navbar navbar-default navbar-fixed-top visible-xs">
<a href="./" class="navbar-brand">angular-starter documentation</a>
<a href="./" class="navbar-brand">woped-frontend documentation</a>
<button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button>
</div>

Expand Down
4 changes: 2 additions & 2 deletions documentation/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>angular-starter documentation</title>
<title>woped-frontend documentation</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">

Expand All @@ -13,7 +13,7 @@
<body>

<div class="navbar navbar-default navbar-fixed-top visible-xs">
<a href="./" class="navbar-brand">angular-starter documentation</a>
<a href="./" class="navbar-brand">woped-frontend documentation</a>
<button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button>
</div>

Expand Down
2 changes: 1 addition & 1 deletion junit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<testsuite name="AppComponent" errors="0" failures="0" skipped="0" timestamp="2023-07-07T18:58:00" time="10.722" tests="2">
<testcase classname="AppComponent should create the app" name="AppComponent should create the app" time="0.937">
</testcase>
<testcase classname="AppComponent should have as title &apos;angular-starter&apos;" name="AppComponent should have as title &apos;angular-starter&apos;" time="0.033">
<testcase classname="AppComponent should have as title &apos;woped-frontend&apos;" name="AppComponent should have as title &apos;woped-frontend&apos;" time="0.033">
</testcase>
</testsuite>
<testsuite name="p2thttpService" errors="0" failures="0" skipped="0" timestamp="2023-07-07T18:58:00" time="14.131" tests="1">
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 9 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,15 @@
{
"name": "angular-starter",
"name": "woped-frontend",
"version": "0.0.1",
"description": "The Angular starter / boilerplate project to start a new enterprise project",
"author": "Wilfried Lucha <[email protected]>",
"homepage": "https://lucha.at",
"description": "The WoPeD Webclient",
"author": "The WoPeD Team <[email protected]>",
"homepage": "https://woped.org/",
"license": "MIT",
"contributors": [
"Wilfried Lucha <[email protected]>"
],
"keywords": [
"angular",
"angular 15",
"angular-starter",
"angular starter",
"angular-boilerplate",
"angular boilerplate",
"angular-template",
"angular template",
"jest",
"transloco",
"prettier",
"testcafe",
"compodoc",
"docker",
"eslint",
"storybook"
],
"repository": "https://github.com/wlucha/angular-starter.git",
"repository": "https://github.com/woped/woped-frontend.git",
"bugs": {
"url": "https://github.com/wlucha/angular-starter/issues"
"url": "https://github.com/woped/woped-frontend/issues"
},
"readme": "https://github.com/wlucha/angular-starter/blob/master/README.md",
"readme": "https://github.com/woped/woped-frontend/blob/main/README.md",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand All @@ -44,15 +23,15 @@
"lint": "ng lint",
"e2e": "testcafe chrome ./e2e/",
"compodoc": "npx compodoc -p tsconfig.app.json",
"analyze": "source-map-explorer dist/angular-starter/**/*.js",
"analyze": "source-map-explorer dist/woped-frontend/**/*.js",
"prettier": "prettier --write \"src/app/**/*.{js,json,css,scss,less,md,ts,html,component.html}\"",
"prepare": "husky install",
"audit": "auditjs ossi",
"version": "auto-changelog -p && git add CHANGELOG.md",
"docs:json": "compodoc -p ./tsconfig.json -e json -d .",
"storybook": "npm run docs:json && start-storybook -p 6006",
"build-storybook": "npm run docs:json && build-storybook",
"deploy-storybook": "npm run build-storybook && npx angular-cli-ghpages --dir=dist/angular-starter",
"deploy-storybook": "npm run build-storybook && npx angular-cli-ghpages --dir=dist/woped-frontend",
"deploy_dependency": "ng add angular-cli-ghpages",
"deploy": "ng deploy"
},
Expand Down
4 changes: 2 additions & 2 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sonar.projectKey=wlucha_angular-starter
sonar.projectName=Angular Starter
sonar.projectKey=woped-frontend
sonar.projectName=woped-frontend
sonar.projectVersion=1.0

sonar.sourceEncoding=UTF-8
Expand Down
Loading

0 comments on commit 345a556

Please sign in to comment.