Skip to content
Permalink
Browse files

feat: initial commit

  • Loading branch information...
evereq committed Jun 15, 2019
1 parent aa383bf commit cb44a1ce29ac3e923d3a6ac947118d20bb9fa5a0
Showing with 18,709 additions and 0 deletions.
  1. +13 −0 .editorconfig
  2. +39 −0 .gitignore
  3. +1 −0 .prettierignore
  4. +3 −0 .prettierrc
  5. +8 −0 .vscode/extensions.json
  6. +50 −0 README.md
  7. +244 −0 angular.json
  8. +1 −0 apps/.gitkeep
  9. +5 −0 apps/api/jest.config.js
  10. +15 −0 apps/api/node_modules/.bin/nodemon
  11. +7 −0 apps/api/node_modules/.bin/nodemon.cmd
  12. +15 −0 apps/api/node_modules/.bin/typeorm
  13. +7 −0 apps/api/node_modules/.bin/typeorm.cmd
  14. +15 −0 apps/api/node_modules/.bin/web-push
  15. +7 −0 apps/api/node_modules/.bin/web-push.cmd
  16. +61 −0 apps/api/package.json
  17. 0 apps/api/src/app/.gitkeep
  18. +22 −0 apps/api/src/app/app.controller.spec.ts
  19. +15 −0 apps/api/src/app/app.controller.ts
  20. +11 −0 apps/api/src/app/app.module.ts
  21. +21 −0 apps/api/src/app/app.service.spec.ts
  22. +9 −0 apps/api/src/app/app.service.ts
  23. 0 apps/api/src/assets/.gitkeep
  24. +3 −0 apps/api/src/environments/environment.prod.ts
  25. +7 −0 apps/api/src/environments/environment.ts
  26. +20 −0 apps/api/src/main.ts
  27. +11 −0 apps/api/tsconfig.app.json
  28. +7 −0 apps/api/tsconfig.json
  29. +9 −0 apps/api/tsconfig.spec.json
  30. +7 −0 apps/api/tslint.json
  31. +11 −0 apps/gauzy-e2e/cypress.json
  32. +4 −0 apps/gauzy-e2e/src/fixtures/example.json
  33. +9 −0 apps/gauzy-e2e/src/integration/app.spec.ts
  34. +17 −0 apps/gauzy-e2e/src/plugins/index.ts
  35. +1 −0 apps/gauzy-e2e/src/support/app.po.ts
  36. +25 −0 apps/gauzy-e2e/src/support/commands.ts
  37. +17 −0 apps/gauzy-e2e/src/support/index.ts
  38. +8 −0 apps/gauzy-e2e/tsconfig.e2e.json
  39. +7 −0 apps/gauzy-e2e/tsconfig.json
  40. +12 −0 apps/gauzy/browserslist
  41. +9 −0 apps/gauzy/jest.config.js
  42. +28 −0 apps/gauzy/ngsw-config.json
  43. +6 −0 apps/gauzy/proxy.conf.json
  44. +4 −0 apps/gauzy/src/app/app.component.html
  45. 0 apps/gauzy/src/app/app.component.scss
  46. +19 −0 apps/gauzy/src/app/app.component.spec.ts
  47. +13 −0 apps/gauzy/src/app/app.component.ts
  48. +13 −0 apps/gauzy/src/app/app.module.ts
  49. 0 apps/gauzy/src/assets/.gitkeep
  50. +3 −0 apps/gauzy/src/environments/environment.prod.ts
  51. +16 −0 apps/gauzy/src/environments/environment.ts
  52. BIN apps/gauzy/src/favicon.ico
  53. +15 −0 apps/gauzy/src/index.html
  54. +13 −0 apps/gauzy/src/main.ts
  55. +52 −0 apps/gauzy/src/manifest.json
  56. +62 −0 apps/gauzy/src/polyfills.ts
  57. +7 −0 apps/gauzy/src/silent-refresh.html
  58. +1 −0 apps/gauzy/src/styles.scss
  59. +1 −0 apps/gauzy/src/test-setup.ts
  60. +12 −0 apps/gauzy/tsconfig.app.json
  61. +7 −0 apps/gauzy/tsconfig.json
  62. +10 −0 apps/gauzy/tsconfig.spec.json
  63. +7 −0 apps/gauzy/tslint.json
  64. +10 −0 jest.config.js
  65. +16 −0 lerna.json
  66. 0 libs/.gitkeep
  67. +7 −0 libs/api-interface/README.md
  68. +9 −0 libs/api-interface/jest.config.js
  69. +1 −0 libs/api-interface/src/index.ts
  70. 0 libs/api-interface/src/lib/api-interface.ts
  71. +3 −0 libs/api-interface/src/lib/interfaces.ts
  72. +7 −0 libs/api-interface/tsconfig.json
  73. +9 −0 libs/api-interface/tsconfig.lib.json
  74. +15 −0 libs/api-interface/tsconfig.spec.json
  75. +4 −0 libs/api-interface/tslint.json
  76. +5 −0 nest-cli.json
  77. +24 −0 nx.json
  78. +154 −0 package.json
  79. +11 −0 proxy.conf.js
  80. 0 tools/schematics/.gitkeep
  81. +11 −0 tools/tsconfig.tools.json
  82. +25 −0 tsconfig.json
  83. +80 −0 tslint.json
  84. +17,276 −0 yarn.lock
@@ -0,0 +1,13 @@
# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
@@ -0,0 +1,39 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc

# dependencies
/node_modules

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# System Files
.DS_Store
Thumbs.db
@@ -0,0 +1 @@
# Add files here to ignore them from prettier formatting
@@ -0,0 +1,3 @@
{
"singleQuote": true
}
@@ -0,0 +1,8 @@
{
"recommendations": [
"nrwl.angular-console",
"angular.ng-template",
"ms-vscode.vscode-typescript-tslint-plugin",
"esbenp.prettier-vscode"
]
}
@@ -6,6 +6,56 @@ Gauzy™ - Fair Profits Sharing
- **Stock Options** solving **fair sharing of profits _in the future_**.
- **Gauzy** solving **fair sharing of profits _today_**.

# Quick Start

- `yarn install`
- `yarn start:api`
- `yarn start`

# Development

We are using:
- [Nx](https://nx.dev), a set of Angular CLI power-ups for modern development.
- [ngx-starter-kit](https://github.com/xmlking/ngx-starter-kit), Angular NestJS Starter Kit, released under [MIT](https://github.com/xmlking/ngx-starter-kit/blob/develop/LICENSE) & `Copyright (c) 2018 Sumanth Chinthagunta`

## Generate a library

Run `ng g @nrwl/angular:lib my-lib` to generate a library.

Libraries are sharable across libraries and applications. They can be imported from `@gauzy/mylib`.

## Development server

Run `ng serve my-app` 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 g component my-component --project=my-app` to generate a new component.

## Build

Run `ng build my-app` 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 my-app` to execute the unit tests via [Jest](https://jestjs.io).

Run `npm run affected:test` to execute the unit tests affected by a change.

## Running end-to-end tests

Run `ng e2e my-app` to execute the end-to-end tests via [Cypress](https://www.cypress.io).

Run `npm run affected:e2e` to execute the end-to-end tests affected by a change.

## Understand your workspace

Run `npm run dep-graph` to see a diagram of the dependencies of your projects.

## Further help

Visit the [Nx Documentation](https://nx.dev) to learn more.

### Trademarks

Gauzy™ is a trademark of Ever Co. LTD.
@@ -0,0 +1,244 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "",
"projects": {
"gauzy": {
"projectType": "application",
"schematics": {
"@nrwl/workspace:component": {
"style": "scss"
}
},
"root": "apps/gauzy",
"sourceRoot": "apps/gauzy/src",
"prefix": "gauzy",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/apps/gauzy",
"index": "apps/gauzy/src/index.html",
"main": "apps/gauzy/src/main.ts",
"polyfills": "apps/gauzy/src/polyfills.ts",
"tsConfig": "apps/gauzy/tsconfig.app.json",
"assets": [
"apps/gauzy/src/favicon.ico",
"apps/gauzy/src/assets",
"apps/gauzy/src/manifest.json",
"apps/gauzy/src/silent-refresh.html"
],
"styles": ["apps/gauzy/src/styles.scss"],
"scripts": []
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "apps/gauzy/src/environments/environment.ts",
"with": "apps/gauzy/src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"serviceWorker": true,
"sourceMap": {
"hidden": true,
"scripts": true,
"styles": true
},
"extractCss": true,
"namedChunks": false,
"ngswConfigPath": "apps/gauzy/ngsw-config.json",
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
}
]
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "gauzy:build",
"proxyConfig": "apps/gauzy/proxy.conf.json"
},
"configurations": {
"production": {
"browserTarget": "gauzy:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "gauzy:build"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"apps/gauzy/tsconfig.app.json",
"apps/gauzy/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "apps/gauzy/jest.config.js",
"tsConfig": "apps/gauzy/tsconfig.spec.json",
"setupFile": "apps/gauzy/src/test-setup.ts"
}
}
}
},
"gauzy-e2e": {
"root": "apps/gauzy-e2e",
"sourceRoot": "apps/gauzy-e2e/src",
"projectType": "application",
"architect": {
"e2e": {
"builder": "@nrwl/cypress:cypress",
"options": {
"cypressConfig": "apps/gauzy-e2e/cypress.json",
"tsConfig": "apps/gauzy-e2e/tsconfig.e2e.json",
"devServerTarget": "gauzy:serve"
},
"configurations": {
"production": {
"devServerTarget": "gauzy:serve:production"
}
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "apps/gauzy-e2e/tsconfig.e2e.json"
}
}
}
},
"api": {
"root": "apps/api",
"sourceRoot": "apps/api/src",
"projectType": "application",
"prefix": "api",
"schematics": {},
"architect": {
"build": {
"builder": "@nrwl/node:build",
"options": {
"outputPath": "dist/apps/api",
"main": "apps/api/src/main.ts",
"showCircularDependencies": false,
"sourceMap": true,
"tsConfig": "apps/api/tsconfig.app.json",
"assets": ["apps/api/src/assets"]
},
"configurations": {
"production": {
"optimization": true,
"extractLicenses": true,
"inspect": false,
"sourceMap": false,
"fileReplacements": [
{
"replace": "apps/api/src/environments/environment.ts",
"with": "apps/api/src/environments/environment.prod.ts"
}
]
}
}
},
"serve": {
"builder": "@nrwl/node:execute",
"configurations": {
"production": {
"buildTarget": "api:build:production"
}
},
"options": {
"buildTarget": "api:build"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"apps/api/tsconfig.app.json",
"apps/api/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "apps/api/jest.config.js",
"tsConfig": "apps/api/tsconfig.spec.json"
}
}
}
},
"api-interface": {
"root": "libs/api-interface",
"sourceRoot": "libs\\api-interface\\src",
"projectType": "library",
"schematics": {},
"architect": {
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"libs\\api-interface\\tsconfig.lib.json",
"libs/api-interface/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "libs/api-interface/jest.config.js",
"tsConfig": "libs/api-interface/tsconfig.spec.json"
}
}
}
}
},
"cli": {
"warnings": {
"typescriptMismatch": false,
"versionMismatch": false
},
"defaultCollection": "@nrwl/angular",
"packageManager": "yarn"
},
"schematics": {
"@nrwl/angular:application": {
"unitTestRunner": "jest",
"e2eTestRunner": "cypress"
},
"@nrwl/angular:component": {
"prefix": "ngx",
"styleext": "scss"
},
"@nrwl/angular:directive": {
"prefix": "ngx"
},
"@nrwl/angular:library": {
"unitTestRunner": "jest"
}
},
"defaultProject": "gauzy"
}
@@ -0,0 +1 @@

@@ -0,0 +1,5 @@
module.exports = {
name: 'api',
preset: '../../jest.config.js',
coverageDirectory: '../../coverage/apps/api'
};

Some generated files are not rendered by default. Learn more.

0 comments on commit cb44a1c

Please sign in to comment.
You can’t perform that action at this time.