3-step checkout application with a React frontend and backend (PHP / Netlify Functions).
https://ferotechnical.netlify.app/
Run the following in root
./start.sh
- Step 1: Basket Review - Display items, quantities, and total
- Step 2: Shipping Info - Form validation for all required fields
- Step 3: Payment - Select payment method and complete order
- Material UI components (using for the first time)
- Material UI has Accessibility [Stepper] bugs that have been captured for repo to resolve.
- Loading and error states
- State persistence across steps
- Success/failure feedback
- Environment-based API configuration
cd backend
php -S localhost:8000The API will be available at http://localhost:8000
cd frontend
npm install
npm run devThe app will be available at http://localhost:3000
- PHP 7.4+
- Node.js 16+
- npm or yarn
We’d like you to build a small checkout flow using a React frontend and PHP backend.
This simulates our kind of work in a small scope. Please spend no more than 4–8 hours.
Create a React app with a 3-step checkout flow: ✅
- Cart Review – Fetch cart items from an API ✅, display them ✅, and show the total ✅.
- Shipping Info – A form with name ✅, email ✅, address ✅, phone ✅ (all required ✅).
- Payment – Fetch payment methods ✅ from an API ✅, allow the user to select one ✅, and simulate submitting a payment ✅. Show a success or error response ✅.
Backend / API (PHP) Build a simple PHP ✅ API (any framework or plain PHP). You may use hardcoded ✅ data or set up a small database if you prefer. ❌ The API should expose at least these endpoints: GET /cart → returns cart items ✅ GET /payment-methods → returns payment options ✅ POST /pay → accepts cart + shipping + payment data, returns success/failure ✅
Frontend (React) ✅
Build a small React app ( ✅ TypeScript ✅ optional but preferred).
Requirements:
API loading/error states ✅
Basic validation on the shipping form ✅
Smooth UI ✅ (Tailwind CSS is a plus)
Deliverables A GitHub repo ✅ containing: The React app. ✅ PHP API. ✅ A README ✅with setup instructions ✅ (how to run both frontend and API locally).
No need to aim for perfection - we just want to see how you think about and structure a full-stack solution, and we’re excited to check out what you put together. The FERO Team
Follow up interview, ghosted.