For this code example I focused on the logical implementation. I have not implemented anything related to UI/UX.
The technologies that I used are:
- [JavaScript] - ES6
- [HTML5]
- webpack - Module bundler for modern JavaScript applications
- jestjs - Jest is a delightful JavaScript Testing Framework
- babeljs - Babel is a toolchain that is mainly used to convert ECMAScript 2015+ code into a backwards compatible version of JavaScript in current and older browsers or environments
This code example requires Node.js to run.
Install the dependencies and devDependencies and start the server:
$ cd checkout
$ npm install
For build the bundle.js:
$ npm run build
For run the test:
$ npm run test -- --coverage
Is recommended install a web server for running the application
- http-server - The web server runs on the http-server npm package
Install the http-server globally on your machine using the node package manager (npm) command line tool, this will allow you to run a web server from anywhere on your computer:
$ npm install -g http-server
In the project directory start the server with this command:
$ http-server
You should see something like the following:
Starting up http-server, serving ./
Available on:
http://127.0.0.1:8080
http://192.168.1.3:8080
Hit CTRL-C to stop the server
Open your browser and go to the address http://localhost:8080 and you should see your local website.
Thank you so much for your time