The backend is developed in go, to run use \knt-backend\start-backend.sh
script (please install go on your system for the script, thank you). It runs in docker container and databse is made with SQLite 3.
We are blessed with the API documentation for the backend which can be found in \docs\knt-backend-doc.yml
. Use swagger to view it.
Frontend is going to be as simple as possible - one page with either modal for login or a separate section for puting in you credentials once done adding products to cart.
Requirements:
- Display the product names and prices on the page.
- Display products added to the cart with + and - for quantity, price per line of product, and total price calculated bellow.
- IMPORTANT add a button to remove everyting from the cart, to not delete everything individually.
- Have a purchase button that calls modal that asks user for their login credentials. Those are two input fields: username, pin-password.
- When authentication fails display to the user.
- When there is not enough credits show the user how much they have and do not allow to purchase.
- On success clear the input fields and display to the user how much money are left after the purchase.
We use Materialize for the frontend, so make sure to check out their documentation.
Additionally, we use noopsTM for DevOps.