forked from vmwarecloudadvocacy/acme_fitness_demo
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor acme-shopping with React / Typescript (#74)
* Typescript fixes Co-authored-by: Carlos Poon <[email protected]> * add tas config * [#188115649] App team can lean on Journey Testing for Quality Assurance. Co-authored-by: Carlos Poon <[email protected]> * [#188115649] - Add simple Assistant chat AI cypress test. Co-authored-by: Tony Thompson <[email protected]> * Address rebase where we removed spring-react-app earlier * [#188180076] - Introduce logout for React-UI Co-authored-by: Tony Thompson <[email protected]> * [#188193919] - Fix ES Lint Co-authored-by: Tony Thompson <[email protected]> Co-authored-by: Carlos Poon <[email protected]> Co-authored-by: Will Sather <[email protected]> * [#188214243] Address issues viewing the React UI app in mobile * Replaced UI with react app Co-authored-by: Carlos Poon <[email protected]> * Synced app name from manifest.yml & removed dist folder in deprecated acme-shopping * Fix theme typescript errors * [#188261766] Configure SpringBoot apps to use IP address when registering with local Eureka server --------- Co-authored-by: Tony Thompson <[email protected]> Co-authored-by: Carlos Poon <[email protected]> Co-authored-by: Will Sather <[email protected]> Co-authored-by: David Joo <[email protected]>
- Loading branch information
1 parent
1e22b17
commit da6d2f8
Showing
341 changed files
with
10,510 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
21 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
## Local running | ||
|
||
Ensure the Local Development dependencies are running. (See main [README](../../README.md)) | ||
Ensure the Local Development dependencies are running. (See main [README](../../local-development/README.md)) | ||
|
||
```bash | ||
cd ../../local-development | ||
docker compose up -d | ||
``` | ||
|
||
This application also assumes there is an OPEN AI API key setup as an environment variable. | ||
Need to set `OPENAI_API_KEY` for the application-local.yml | ||
|
||
This project uses Java version 21. Ensure your system has this available before running the app locally. | ||
|
||
run locally setting up docker for dependency | ||
To run the acme-assist app locally, | ||
```bash | ||
docker-compose up | ||
./gradlew bootRun --args="--spring.profiles.active=local" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
spring: | ||
application: | ||
name: acme-identity | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# ACME Shopping React | ||
|
||
## Local Development | ||
|
||
To run this locally: | ||
|
||
1. Install dependencies | ||
```bash | ||
npm install | ||
``` | ||
|
||
2. Start Development Server | ||
```bash | ||
npm run dev | ||
``` | ||
|
||
## Production Build | ||
|
||
To build this for production: | ||
|
||
1. Run build | ||
```bash | ||
npm run build | ||
``` | ||
2. Run build | ||
```bash | ||
npm run preview | ||
``` | ||
|
||
## Lint | ||
|
||
This project uses ESlint, to run: | ||
|
||
1. Install dependencies | ||
```bash | ||
npm run lint | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import js from '@eslint/js' | ||
import globals from 'globals' | ||
import reactHooks from 'eslint-plugin-react-hooks' | ||
import reactRefresh from 'eslint-plugin-react-refresh' | ||
import tseslint from 'typescript-eslint' | ||
|
||
export default tseslint.config( | ||
{ ignores: ['dist'] }, | ||
{ | ||
extends: [js.configs.recommended, ...tseslint.configs.recommended], | ||
files: ['**/*.{ts,tsx}'], | ||
languageOptions: { | ||
ecmaVersion: 2020, | ||
globals: globals.browser, | ||
}, | ||
plugins: { | ||
'react-hooks': reactHooks, | ||
'react-refresh': reactRefresh, | ||
}, | ||
rules: { | ||
...reactHooks.configs.recommended.rules, | ||
'react-refresh/only-export-components': [ | ||
'warn', | ||
{ allowConstantExport: true }, | ||
], | ||
}, | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<link rel="icon" href="/favicon.png" /> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, user-scalable=no" /> | ||
<title>Acme Fitness</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
applications: | ||
- name: acme-shopping | ||
memory: 1G | ||
path: dist | ||
buildpack: staticfile_buildpack | ||
routes: | ||
- route: acme-shopping.apps.internal |
Oops, something went wrong.