GithubHelp home page GithubHelp logo

customer-management's Introduction

Main features:

  • list all customers, along with filter and sort. It will filter the list with all criteria inputted by user.
  • enable editing notes and customer status in detail page.

Tech Stack mainly used:

   Frontend:

  • ReactJS -- as View engine to structure pages and user interactions
  • SCSS -- for better experience on writing css
  • Bourbon-neat -- for grid system
  • NodeJS -- only for development purpose, which is hosting pages along with hot loader, that can detect any changes from scss and js files, and redeploy changes to dev server immediately.

   Backend:

  • NodeJS + ExpressJS -- to build web APIs
  • Mongoose -- as object modeling tool for MongoDB
  • MongoDB -- to store document data
  • migrate-mongo -- as data migration tool for initializing database

   API test:

  • Mocha -- as test runner based on NodeJS
  • Expect -- for better experience on assertion
  • Supertest -- for great experience on API level test

Express API:

  • can be found in routes/customers and src/controller/customers
  • GET /customers - retrieve all customers with limited fields
  • GET /customers/:id - retrieve specific customer data
  • PATCH /customers/:id - patch update specific customer data
  • POST /customers - create customer
  • by the way, all frontend code can be found under /client

Make it run on dev env:

  1. run npm install under home directory
  2. run npm install migrate-mongo -g to install migrate-mongo command locally, for prospective testing data insertion
  3. run npm run api to start node server on post http://localhost:3001
  4. open another terminal, cd client to open client side directory, and run npm install to install dependencies then run npm start to execute data migration and start dev server on http://localhost:3000
  5. open http://localhost:3000/customers on browser

Run tests for APIs:

  • run npm run test under home directory
  • for time constraints, I haven't written any tests for client side..

customer-management's People

Contributors

hjyao avatar

Watchers

James Cloos avatar  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.