Skip to content

Commit

Permalink
feedback, updates
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenbaker committed Aug 23, 2024
1 parent f0ff957 commit 390af1e
Show file tree
Hide file tree
Showing 16 changed files with 1,079 additions and 437 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,3 @@ bin/
# Ignore Gradle build output directory
build

# Ignore node_modules, next cache
node_modules
.next
8 changes: 8 additions & 0 deletions tutorials/full-stack-application/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Ignore node_modules, next cache
node_modules
.next
**/dist

# Ignore generated code
client/sdk
server/ssdk
6 changes: 6 additions & 0 deletions tutorials/full-stack-application/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,16 @@ dev-server: build-ssdk ## Run the server in development-mode
dev-app: build-client ## Run the web application in development-mode
cd app; yarn && yarn dev

dev: # Run the server and web application in development-mode in the same session
$(MAKE) -j 2 dev-server dev-app

run-server: build-server ## Run the server
cd server; yarn start

run-app: build-app ## Run the web application
cd app; yarn start

run: ## Run the server and web application in the same session
$(MAKE) -j 2 run-server run-app

test-all: build
2 changes: 1 addition & 1 deletion tutorials/full-stack-application/app/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,5 @@ body {
/* ----------- */

.order_button {
@apply w-full bg-transparent hover:bg-orange-500 text-orange-700 font-semibold hover:text-white py-2 px-4 border border-orange-500 hover:border-transparent rounded;
@apply w-full bg-transparent hover:bg-orange-500 text-orange-700 font-semibold hover:text-white py-2 px-4 border border-orange-500 hover:border-transparent rounded duration-300 ease-in-out;
}
8 changes: 4 additions & 4 deletions tutorials/full-stack-application/app/app/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CoffeeItem, CoffeeService, CoffeeType, OrderStatus } from "@com.example/coffee-service-client";
import { CoffeeItem, CoffeeShop, CoffeeType, OrderStatus } from "@com.example/coffee-service-client";

// Convert a string to a "friendly" variant
export function displayName(str: string): string {
Expand All @@ -23,9 +23,9 @@ export function getImage(type: CoffeeType | string): string {
}

// create a coffee service client singleton and getter
let client: CoffeeService
export function getClient(): CoffeeService {
return client || (client = new CoffeeService({
let client: CoffeeShop
export function getClient(): CoffeeShop {
return client || (client = new CoffeeShop({
endpoint: {
protocol: "http",
hostname: "localhost",
Expand Down
4 changes: 3 additions & 1 deletion tutorials/full-stack-application/app/app/order/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ function Coffee() {
return (
<div>
<h2 className="text-center text-6xl">Enjoy!</h2>
<Image className="" src={imageSrc} width={1024} height={1024} alt="coffee-display" priority/>
<Image className="flex justify-center mx-auto" src={imageSrc} width={1024} height={1024}
alt="coffee-display" priority
/>
</div>
);
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 390af1e

Please sign in to comment.