Code Monkey home page Code Monkey logo

easygroceriesapp's Introduction

Easy Groceries App

Here is the code base for the 2 apps:

Web Typescript React UI App: https://github.com/luchiansienna/EasyGroceriesApp.git

.Net Core API Application: https://github.com/luchiansienna/EasyGroceriesAPI.git

Before starting the web server, the 'npm install' command needs to be run. I also attached an .env file with the API link variable. This needs to be put in the root folder of the web app before starting the web server ( hitting 'npm start' on the command line).

There are a list of products there, and I used SQLLite as a database, although this can be changed. The user is able to add products to the basket, go to check out by pressing the top right button. On the checkout page, products can be removed from the basket, or updated with a different quantity. The shipping details must be filled, and the order can be placed by pressing the bottom 'Order' button. If validation passes, the shipping slip is being shown. The order, order items and all details relating to the order are being added to the sqllite database. By pressing the bottom button, a new process of making a new order can be started.

Unit tests have been added on the front side with JEST and React unit testing library, as well as on the back end with NUnit.

On the API I have used Dependency Injection at making the UnitWork for accessing the database.

In the business layer, the order processor has been made flexible with loose connections being provided in the constructor and binded at the run-time. Validation has been added also on the back end, with ValidatorOrderProcessor.

easygroceriesapp's People

Contributors

luchiansienna avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.