Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"presets": [
[
"@nx/react/babel",
{
"runtime": "automatic"
}
]
],
"plugins": [
["babel-plugin-root-import", {
"rootPathSuffix": "./node_modules/",
"rootPathPrefix": "@"
}]
]
}

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ npm-debug.log
yarn-error.log
testem.log
/typings
.nx

# System Files
.DS_Store
Expand Down
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
# . "$(dirname -- "$0")/_/husky.sh"

npx lint-staged --concurrent false --relative
# npx lint-staged --concurrent false --relative
4 changes: 2 additions & 2 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
# . "$(dirname -- "$0")/_/husky.sh"

yarn run prepush:fix
# yarn run prepush:fix
20 changes: 20 additions & 0 deletions apps/backend-e2e/jest.config.js

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

10 changes: 10 additions & 0 deletions apps/backend-e2e/src/apps/backend/apps/backend.spec.js

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

20 changes: 20 additions & 0 deletions apps/backend-e2e/src/support/global-setup.js

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

18 changes: 18 additions & 0 deletions apps/backend-e2e/src/support/global-teardown.js

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

13 changes: 13 additions & 0 deletions apps/backend-e2e/src/support/test-setup.js

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

22 changes: 22 additions & 0 deletions apps/backend/src/app/app.controller.spec.js

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

26 changes: 13 additions & 13 deletions apps/backend/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ import { PluralNamingStrategy } from '../strategies/plural-naming.strategy';

@Module({
imports: [
TypeOrmModule.forRoot({
type: 'mongodb',
host: '127.0.0.1',
port: 27017,
database: 'scaffoldingTest',
// username: 'root',
// password: 'root',
autoLoadEntities: true,
// entities: [join(__dirname, '**/**.entity.{ts,js}')],
// Setting synchronize: true shouldn't be used in production - otherwise you can lose production data
synchronize: true,
namingStrategy: new PluralNamingStrategy(),
}),
// TypeOrmModule.forRoot({
// type: 'mongodb',
// host: '127.0.0.1',
// port: 27017,
// database: 'scaffoldingTest',
// // username: 'root',
// // password: 'root',
// autoLoadEntities: true,
// // entities: [join(__dirname, '**/**.entity.{ts,js}')],
// // Setting synchronize: true shouldn't be used in production - otherwise you can lose production data
// synchronize: true,
// namingStrategy: new PluralNamingStrategy(),
// }),
],
controllers: [AppController],
providers: [AppService],
Expand Down
20 changes: 20 additions & 0 deletions apps/backend/src/app/app.service.spec.js

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

2 changes: 1 addition & 1 deletion apps/backend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async function bootstrap() {
app.enableCors();

const globalPrefix = 'api';
app.setGlobalPrefix(globalPrefix);
app.setGlobalPrefix('');

const config = new DocumentBuilder()
.setTitle('Scaffolding API Docs')
Expand Down
13 changes: 13 additions & 0 deletions apps/backend/src/strategies/plural-naming.strategy.js

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

10 changes: 0 additions & 10 deletions apps/frontend-e2e/.eslintrc.json

This file was deleted.

8 changes: 0 additions & 8 deletions apps/frontend-e2e/cypress.config.ts

This file was deleted.

33 changes: 0 additions & 33 deletions apps/frontend-e2e/project.json

This file was deleted.

13 changes: 0 additions & 13 deletions apps/frontend-e2e/src/e2e/app.cy.ts

This file was deleted.

4 changes: 0 additions & 4 deletions apps/frontend-e2e/src/fixtures/example.json

This file was deleted.

1 change: 0 additions & 1 deletion apps/frontend-e2e/src/support/app.po.ts

This file was deleted.

33 changes: 0 additions & 33 deletions apps/frontend-e2e/src/support/commands.ts

This file was deleted.

17 changes: 0 additions & 17 deletions apps/frontend-e2e/src/support/e2e.ts

This file was deleted.

10 changes: 0 additions & 10 deletions apps/frontend-e2e/tsconfig.json

This file was deleted.

1 change: 1 addition & 0 deletions apps/frontend/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_GOOGLE_MAPS_API_KEY=AIzaSyD7MOEZGAenn-C17z-cjJl8e0EgchDkEcQ
1 change: 1 addition & 0 deletions apps/frontend/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_GOOGLE_MAPS_API_KEY=INSERT_API_KEY_HERE
5 changes: 4 additions & 1 deletion apps/frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Frontend</title>
<title>GreenInfrastructureFrontend</title>
<base href="/" />

<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<link rel="stylesheet" href="/src/styles.css" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat&family=Open+Sans&display=swap" rel="stylesheet">
</head>
<body>
<div id="root"></div>
Expand Down
Loading