This project is built with Next.js 15, TypeScript, and Tailwind CSS to provide a modern and scalable web application. It includes React Hook Form, Zod for form validation, ShadCN UI for beautiful components, and follows best coding practices with ESLint, Prettier, and Husky. CI/CD is handled by GitHub Actions with automatic deployments to Vercel.
๐ Check out the deployed application here!
To get started, make sure you have Node.js >= 22 and npm >= 10 installed.
# Clone the repository
git clone https://github.com/Hechprad/credit-card-checkout-nextjs.git
cd credit-card-checkout-nextjs
# Install dependencies
npm install
# Start the development server
npm run dev
# Run all tests
npm test
# Run all tests with watch mode
npm test:watch
# Run tests with coverage
npm run test:coverage
๐ฆ project-name
โฃ ๐ .github # GitHub-related workflows (e.g., Actions, issue templates)
โฃ ๐ .husky # Husky configuration for pre-commit and pre-push hooks
โฃ ๐ .vscode # VS Code settings and extensions for the project
โฃ ๐ src # Main source code folder
โ โฃ ๐ app # Next.js App Router structure
โ โฃ ๐ assets # Static assets (images, icons, bgs, etc.)
โ โฃ ๐ components # Reusable UI components
โ โฃ ๐ config # Application configuration files (Jest)
โ โฃ ๐ lib # Utility functions and helpers (ShadCN)
โ โฃ ๐ services # API calls and business logic
โ โฃ ๐ styles # Global styles (Tailwind configurations, custom styles)
โ โฃ ๐ types # TypeScript type definitions
โฃ ๐ .editorconfig # Code style consistency across different editors
โฃ ๐ .gitattributes # Git configuration (e.g., line endings, file handling)
โฃ ๐ .gitignore # Files and folders to be ignored by Git
โฃ ๐ .prettierignore # Files ignored by Prettier formatting
โฃ ๐ .prettierrc.json # Prettier formatting rules
โฃ ๐ components.json # ShadCN UI component registry
โฃ ๐ eslint.config.mjs # ESLint configuration file
โฃ ๐ jest.config.ts # Jest configuration for unit testing
โฃ ๐ next.config.ts # Next.js configuration file
โฃ ๐ package.json # Project dependencies, scripts, and metadata
โฃ ๐ postcss.config.mjs # PostCSS configuration for Tailwind
โฃ ๐ README.md # Project documentation
โฃ ๐ tsconfig.json # TypeScript compiler settings
Route | Description |
---|---|
/ |
Home page |
/checkout/cart |
Empty page - Step 1 |
/checkout/payment |
Main feature page - Step 2 |
/checkout/confirmation |
Empty page - Step 3 |
/??? |
Not found page |
This project includes a CI/CD pipeline with GitHub Actions:
main
branchJorge Hecherat ๐ป GitHub โข ๐ง Email
This project is licensed under the MIT License. Feel free to use and modify it!