Giter Club home page Giter Club logo

vuewithexpress's Introduction

Vue With Express

Vue framework With Node Express For Server.

  • this app incudes test with Jest

Required installation

  1. Node JS : https://nodejs.org/en/download/ (install npm packege by default)

Getting started - only the first time

  1. open terminal at folder 'my-app', run:$ npm install
  2. open terminal at folder 'server', run: $ npm install

Run App

  1. client run: open terminal at folder 'my-app'
  2. test : open terminal at folder 'my-app'
    • $ npm run test
  3. open terminal at folder 'server'

Technologies in this project

  1. Node js express for server side + handle CORS on server
  2. client VUE
  3. for UI: bootstrap-vue
  4. node FS for state maintain in file system
  5. test with jest

POC

single page application that lets sellers fill their COGS (cost of goods) of each product. The app display the seller’s products, and once the seller selects a product from the list, the seller will be shown a form page where the seller can update COGS fields of the selected product.

For each product - display + edit

  • Unit manufacturing cost (currency)
  • Shipment unit cost (currency)
  • Monthly advertising cost (currency)
  • Manufacturing country (dropdown)

data structure

  1. DB (file system: productsDataBase.json) - Hash
  • { "B08QPPGNNZ":{"productName":"MediChair Kneeling Chair", "cogs":{"unitManufacturingCost":61,"shipmentUnitCost":789,"monthlyAdvertismentCost":967,"manufacturingCountry":"CO"} } }
  1. the server return to client a data of array of objects

Server API

  • GET - /products - retrieve a list of seller products
  • GET - /countries - retrieve a statuc list of countries
  • POST - /cogs - save the cost data for a product

Test with jest API

with mock data for country + products array

  1. remove and add elements to the dom while chage display mode (form/read only)
  2. get country name by key
  3. post product with many requests

vuewithexpress's People

Contributors

linoravny 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.