Giter Club home page Giter Club logo

zip-co-test's Introduction

Assignment

Your task is to add a new feature to our existing application.

This feature is a new page to Add new Customer, place order on their behalf, and view existing customer's orders

Backend

  • Add a new route that Add/Get Orders.
  • Add feature to store the status of the customer orders: InProgress, Delivered, Cancelled
  • There is a maximum of 4 InProgress orders for each customer allowed to be stored. In the event of approaching display message an prevent adding new order.
  • Add a new route to cancel and update an existing order.
  • Add unit test

Frontend

  • Create a new page to display the list of orders for specific customer and allow to Add new order for this customer
  • The page should be responsive
  • There should be a textbox to search custimers by email
  • Add unit test

Notes

  • You'll also notice for the sake of simplicity we're not worrying about database versioning and migrations (we'll likely discuss approaches to this you've used in the past during a subsequent technical interview).

Tech stack

Getting Started

  1. Install Docker Desktop for Mac or Docker Desktop for Windows.

  2. Navigate to the AspNetCorePostgreSQLDockerApp subfolder in a console window.

  3. Open the Client folder in a terminal window and run the following commands at the root of the folder (requires Node.js):

    • npm install
    • npm install -g @angular/cli
    • ng build
  4. Move back up a level to the AspNetCorePostgreSQLDockerApp in the terminal window:

    • Run docker-compose build

    • Run docker-compose up

  5. Navigate to http://localhost:5000 in your browser to view the site.

  6. We recommend making sure you're able to run the app and that is working before beginning to add your new feature.

Frontend test:

  1. Navigate to the AspNetCorePostgreSQLDockerApp\Client subfolder in a console window.

  2. Open the Client folder in a terminal window and run the following commands at the root of the folder (requires Node.js):

    • npm install
    • npm install -g @angular/cli
    • ng build
    • Test components, services...: npm run test
    • Test UI End-to-End with cypress: npm run e2e

zip-co-test's People

Contributors

kietphamdev avatar

Watchers

Kiet Pham 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.