This is a front-end application for the Auction House With Serverless Microservices demo project.
Clone this repository.
git clone https://github.com/levid83/auction-frontend
cd auction-frontend
Install the NPM dependencies for this project.
npm install
Create a .env
file in the root folder of this project (see .env.example). You need to specify 4 variables:
-
REACT_APP_REFRESH_RATE
: The rate at which auctions will be fetched (in milliseconds) -
REACT_APP_AUCTIONS_ENDPOINT
: Your Auction Service API endpoint (underAWS ->CloudFormation->Stacks-> ${AUCTION_SERVICE_STACK_NAME}->Outputs->ServiceEndpoint
) -
REACT_APP_AUTH0_DOMAIN
: Your Auth0 application domain. (underAuth0.com->applications->${YOUR_APP_NAME}->settings
) -
REACT_APP_AUTH0_CLIENT_ID
: Your Auth0 application client ID. (underAuth0.com->applications->${YOUR_APP_NAME}->settings
)
You can run the application by typing in:
npm start
The application should now be running at http://localhost:3000.