This is a React + Typescript app that uses Material UI components for styling. Initial scaffolding was done using Vite.
You can use yarn
or npm
to install and run this project.
This project was created on yarn v3.6.0. Running yarn
will install the dependencies. To run the app in dev mode, run yarn dev
.
yarn
yarn dev
Once the project is running, you can navigate to localhost:5173
to view the project.
This project was created on yarn v3.6.0, but will run using npm as well. The version I currently have is v9.6.5. Running npm install
will install the dependencies. To run the app in dev mode, run npm run dev
.
npm install
npm run dev
Once the project is running, you can navigate to localhost:5173
to view the project.
Since there are a number of files generated, here is a list of files to pay attention to when reviewing the code:
src/App.tsx
- App entry, contains the code for routingsrc/Checkout.tsx
- This contains the code for the Checkout pagesrc/CheckoutSuccess.tsx
- This is the view when checkout is successfulsrc/EventList.tsx
- List of events availablesrc/EventCard.tsx
- Event card displaying information about a single eventsrc/PaymentForm.tsx
- Form for credit card information entrysrc/helpers.ts
- Helper functions to help with form validationsrc/mockData.ts
- Mock data