Skip to content

Commit

Permalink
updated readme & api endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Facundo De Lorenzo committed May 18, 2024
1 parent 8515464 commit 673e7c0
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ So as to be able to run the API you must first get the AWS SAM CLI because it's
Get the latest version of AWS SAM CLI from here
https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/install-sam-cli.html

Front is deployed at
http://wakeup-fullstack-challenge.s3-website-us-east-1.amazonaws.com/

Api is deployed at
https://n6nzscrpv7.execute-api.us-east-1.amazonaws.com/Prod

Tests for the backend were not implemented.
If they were to be implemented, I'd use jest.
Expand Down
2 changes: 1 addition & 1 deletion packages/front/.env.production
Original file line number Diff line number Diff line change
@@ -1 +1 @@
REACT_APP_API_ENDPOINT=https://bpphj904g4.execute-api.us-east-1.amazonaws.com/Prod
REACT_APP_API_ENDPOINT=https://n6nzscrpv7.execute-api.us-east-1.amazonaws.com/Prod
2 changes: 1 addition & 1 deletion packages/front/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
createRoutesFromElements,
} from "react-router-dom";
import Products from "./pages/Products";
import { CurrentOrderProvider } from "./components/app/contexts/useCurrentOrderProvider";
import { CurrentOrderProvider } from "./components/app/contexts/currentOrder/useCurrentOrderProvider";
import Restaurants from "./pages/Restaurant";

const App = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createContext, useContext } from "react";
import { OrderProduct } from "../hooks/useCreateOrder";
import { OrderProduct } from "../../hooks/useCreateOrder";

interface CurrentOrderContextType {
orderProducts: OrderProduct[];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ReactNode, useState } from "react";
import { CurrentOrderContext } from "./useCurrentOrderContext";
import { OrderProduct } from "../hooks/useCreateOrder";
import { OrderProduct } from "../../hooks/useCreateOrder";

export interface ICurrentOrderProvider {
children: ReactNode;
Expand Down
3 changes: 1 addition & 2 deletions packages/front/src/components/app/hooks/useCreateOrder.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Product } from "./useGetProducts";
import { useCurrentOrderContext } from "../contexts/useCurrentOrderContext";
import { useCurrentOrderContext } from "../contexts/currentOrder/useCurrentOrderContext";
import axios from "axios";
import { useState } from "react";

export interface Order {
products: OrderProduct[];
Expand Down
1 change: 0 additions & 1 deletion packages/front/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';

Expand Down

0 comments on commit 673e7c0

Please sign in to comment.