Skip to content
chris-gdsPublic

About

FERO Technical test

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

FERO FS Technical, Checkout Flow

3-step checkout application with a React frontend and backend (PHP / Netlify Functions).

Live live to view:

https://ferotechnical.netlify.app/

Quick Start

Run the following in root

./start.sh

Frontend (React + TypeScript)

  • 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

Quick start not working? Use:

1. Start the Backend

cd backend
php -S localhost:8000

The API will be available at http://localhost:8000

2. Start the Frontend

cd frontend
npm install
npm run dev

The app will be available at http://localhost:3000

Requirements

  • PHP 7.4+
  • Node.js 16+
  • npm or yarn

FERO Fullstack Developer Take-Home Assignment

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.

Goal

Create a React app with a 3-step checkout flow: ✅

  1. Cart Review – Fetch cart items from an API ✅, display them ✅, and show the total ✅.
  2. Shipping Info – A form with name ✅, email ✅, address ✅, phone ✅ (all required ✅).
  3. 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) ⚠️ (MUI) State should persist across steps until checkout is completed. ✅

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

Outcome

Follow up interview, ghosted.

About

FERO Technical test

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages