If you run a shoe store and haven't expanded into cyber-space yet, then you might be interested to know that this application will help you manage your stock, as well as give your customers the opportunity to interface with your store from the comfort of their own home!
Features:
- Search through stock to find your dream shoes
- Add all shoes that you want to purchase to a cart
- Checkout with your cart
-
Navigate to the home page
-
Choose your preferred brand, size, color, or just search through all shoes that are available by clicking the "SEARCH" button after making your decision(s).
-
Browse through the available shoes.
-
If you like anything you see, click "ADD TO CART".
-
After you are finished shopping, you can open your cart by clicking on the "Cart" section on the navigation bar.
-
If you are happy with your choices and are ready to check out, click on the "CHECKOUT" button, which will direct you to the next steps.
-
Enjoy your shoes!
Features:
- Add new shoes to your stock
- When a sale is made, stock is automatically adjusted accordingly
- Total is calculated, so the the customer would just need to be redirected to the appropriate checkout service.
-
Navigate to the home page
-
Click on the "Admin" section on the navigation bar.
-
Fill out the form.
-
Submit the form by clicking the "ADD" button.
- NOTE: The "price" field of the form should not include the currency identifier. Only input numbers!
Want to contribute to and/or extend the application? Then this section's for you!
- Node & npm or Yarn must be installed.
-
Fork the repository.
-
Clone the repository onto your dev machine.
-
Navigate to the project root directory.
-
Run
npm installoryarnin the project root. This will install all dependencies that are included in the package.json.
Tools that are included in this app are:
- Lodash / Lodash-CLI
- Rollup
- Rollup Buble plugin
- Use npm to install http-server:
npm install http-server
- Run the application by typing the following command in your terminal from the project root:
http-server -c-1
This application is modular and written using ES6 standards. This makes for clean code, but has the unfortunate side-effect of not being browser-friendly. Most browsers understand a single JS file, written in ES5. Therefore, in order to make an app browser friendly, while still maintaining a semblance of modularity, we introduce Rollup.
Rollup is a module bundler. It processes all the modules in your project, and outputs a single javascript file that can be served to the browser. However, once again, Rollup is only a module bundler. Even though it does the work of outputting a single JS file for distribution, it does not (inherently) "translate" ES6 to the ES5 format necessary for the browsers to use. For this, we can use a transpiler, which will do the work of converting ES6 to the browser-friendly ES5.
The transpiler used for this application is a rollup plugin called "Buble", which is made by the author of rollup.
- Make any changes you want inside of the src folder.
- Run the following command in the terminal:
rollup -c > dist/main.dist.js
- Repeat steps 1 and 2!
If you are interested in scouring the API that is used by this application, you can find it here.