Skip to content

VasileiosVal/credit-card-interactive-form

Repository files navigation

credit-card-interactive-form · Build Status Cypress.io

A beautiful, interactive and responsive credit card form with smooth animations and beautiful ui changes. Inspired by muhammederdem / vue-interactive-paycard

Libraries and tools that used:

  • React v16.12 with Typescript
  • Mobx - Mobx React Lite - React Context API as state management. Used for exercise purpopes only since the project size doesn't require an external state management library.
  • CSS modules - Sass
  • Component Testing with React Testing Library
  • E2E Testing with Cypress
  • CI/CD pipeline with Travis CI

This project was bootstrapped with Create React App.

Available Scripts

Clone the project in your local environment and inside project directory run:

npm install

After project dependencies are installed, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run test

Launches the Test Runner in the interactive watch mode. (Tests implemented with React Testing Library)

npm run cypress

Launches the Cypress Test Runner that indicates all available e2e tests.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.