Giter Club home page Giter Club logo

rfprod / nx-ng-starter Goto Github PK

View Code? Open in Web Editor NEW
112.0 8.0 14.0 40.85 MB

Monorepo starter with workflow automation: Nx, Angular, Angular Elements, Electron, NodeJS, NestJS, Firebase.

Home Page: https://nx-ng-starter.web.app/

License: MIT License

JavaScript 8.32% TypeScript 80.12% HTML 1.85% Shell 6.99% Java 0.15% SCSS 1.83% Dockerfile 0.53% Mermaid 0.22%
angular jest-tests nestjs firebase firebase-hosting firebase-functions express-graphql monorepo cypress-tests capacitor

nx-ng-starter's People

Contributors

dead-beef avatar dependabot[bot] avatar rfprod avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nx-ng-starter's Issues

[Maintenance]: codeql action

Contact Details

No response

Problem description

Codeql action v1 will be deprecated soon.

CodeQL Action v1 will be deprecated on December 7th, 2022. Please upgrade to v2. For more information, see https://github.blog/changelog/2022-04-27-code-scanning-deprecation-of-codeql-action-v1/

Preferred solution description

Update codeql action to v2.

Alternative solutions description

No response

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Cypress tests vs storybook

Describe the bug
Currently cypress tests vs storybook hang after starting storybook.

To Reproduce

npx nx e2e client-components-e2e

Expected behavior
Cypress tests vs storybook do not hang.

Build Angular webapp for mobile platforms using Cordova or Capacitor

Add sample Ionic app with code sharing between mobile app and webapp.

Instead on adding Ionic to the project, compare and add either Capacitor or Cordova to the project as a dev dependency, and configure a shell script tools/shell/build-mobile.sh that will accept an argument with possible values android | ios | windows, and use Cordova to build web application wrapped in a container for specific mobile platform:

  • Android (building for this platform is in scope of this ticket)
  • iOS (building for iOS via shell script should output a string TODO: build for iOS)
  • Windows (building for iOS via shell script should output a string TODO: build for Window)

Fix documentation app storybook

Describe the bug
When documentation app storybook is started locally, components are not rendered.

To Reproduce
Steps to reproduce the behavior:

  1. Execute locally ng run documentation:storybook
  2. Follow instructions in the terminal

Expected behavior
When documentation app storybook is started locally, components are rendered.

Desktop (please complete the following information):

  • OS: Linux

Debug firebase functions deployment (grpc breaks functions deployment)

Describe the bug
Currently functions are not deployed to firebase both from local setup and from CI.

To Reproduce

  1. Execute command
firebase deploy --only functions:graphql,functions:login,functions:logout,functions:signup

Expected behavior
Functions are deployed to firebase.

Additional context
Terminal log

i  functions: updating Node.js 10 (Beta) function logout(us-central1)...
i  functions: updating Node.js 10 (Beta) function signup(us-central1)...
i  functions: updating Node.js 10 (Beta) function graphql(us-central1)...
⚠  functions[graphql(us-central1)]: Deployment error.
Error setting up the execution environment for your function. Please try deploying again after a few minutes.
⚠  functions[login(us-central1)]: Deployment error.
Error setting up the execution environment for your function. Please try deploying again after a few minutes.
⚠  functions[logout(us-central1)]: Deployment error.
Error setting up the execution environment for your function. Please try deploying again after a few minutes.
⚠  functions[signup(us-central1)]: Deployment error.
Error setting up the execution environment for your function. Please try deploying again after a few minutes.


Functions deploy had errors with the following functions:
	graphql
	login
	logout
	signup


To try redeploying those functions, run:
    firebase deploy --only functions:graphql,functions:login,functions:logout,functions:signup

Check this files which have commented code regarding firebase environment and grpc:

  • apps/api/src/main.ts
  • apps/api/src/app/modules/grpc/grpc-api-client.options.ts

Install required dependencies for grpc support in /functions directory.

Revise .devops directory contents.

Fix documentation app (e2e reports aggregation)

Describe the bug
E2E reports are not generated or properly copied to the documentation app dist.

To Reproduce
Links in the following README.md section are not working https://github.com/rfprod/nx-ng-starter#e2e-report

Expected behavior
Links in the following README.md section are accessible https://github.com/rfprod/nx-ng-starter#e2e-report

Additional context

Build script does not work without arguments

Describe the bug
./tools/shell/build.sh without arguments exits with usage error. Usage information contains - bash tools/shell/build.sh - build all apps.

To Reproduce
Steps to reproduce the behavior:

  1. Execute command ./tools/shell/build.sh
  2. See error

Expected behavior
All apps are built.

Additional context
Terminal log

nx-ng-starter > ./tools/shell/build.sh 

    << USAGE >>

     -  bash tools/shell/build.sh - build all apps
     -  bash tools/shell/build.sh prod - build all apps in production mode
     -  bash tools/shell/build.sh prod api - build API app in production mode
     -  bash tools/shell/build.sh prod nx-ng-starter - build Nx Ng Starter app in production mode

Debug graphql in api app

This error does not prevent api application from starting

(node:17156) UnhandledPromiseRejectionWarning: Error: Schema must contain uniquely named types but contains multiple types named "MatcompModel".
    at new GraphQLSchema (/media/suser/DATA/git/rfprod/nx-ng-starter/node_modules/graphql/type/schema.js:194:15)
    at GraphQLSchemaFactory.<anonymous> (/media/suser/DATA/git/rfprod/nx-ng-starter/node_modules/@nestjs/graphql/dist/schema-builder/graphql-schema.factory.js:28:28)
    at Generator.next (<anonymous>)
    at /media/suser/DATA/git/rfprod/nx-ng-starter/node_modules/tslib/tslib.js:113:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/media/suser/DATA/git/rfprod/nx-ng-starter/node_modules/tslib/tslib.js:109:16)
    at GraphQLSchemaFactory.create (/media/suser/DATA/git/rfprod/nx-ng-starter/node_modules/@nestjs/graphql/dist/schema-builder/graphql-schema.factory.js:23:24)
    at GraphQLSchemaBuilder.<anonymous> (/media/suser/DATA/git/rfprod/nx-ng-starter/node_modules/@nestjs/graphql/dist/graphql-schema.builder.js:55:56)
    at Generator.next (<anonymous>)
    at /media/suser/DATA/git/rfprod/nx-ng-starter/node_modules/tslib/tslib.js:113:75

Set permissions for shell scripts in tools/shell directory

Describe the bug
Currently shell scripts are missing permissions which requires calling a script like, e.g.

bash tools/shell/install.sh

It is impossible to call a script using its name only

tools/shell/install

To Reproduce
Try calling a script by its name only

tools/shell/install

Expected behavior
It is possible to call a script by its name only

tools/shell/install

Desktop (please complete the following information):

  • OS: Linux

Workspace schematics

Describe the bug
Workspace uses tsconfig.json files while nx has tsconfig.base.json hardcoded.

To Reproduce

Steps to reproduce the behavior:

  1. execute
yarn workspace:schematic client-feature test-client-feature

Expected behavior
It should not be required to change tsconfig.json -> tsconfig.base.json, and tools/tsconfig.json to run workspace schematics.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.