rohan-paul / chainable-dropdown-list

Small MERN app where one dropdown lists should get updated based on selections made on other dropdown list
4 stars 0 forks source link

A UI page built with MERN stack (database served from mLab). Testing with Jest

Basic flow of the current functionality

From the Express backend, I have feeded data ( for my Car database model ) to database hosted mLab with POST request from POSTMAN

Then with React Front end will fetch that data from the http://localhost:5000 ( which is where my Express server is running) and render it.

Few basic tests implemented with karma, mocha and expect assertion library.

Quick Start

Install dependencies for server

npm install

Install dependencies for client by navigating to the the ./client directory

npm install

Run both the client & server (using concurrently npm package)

npm run dev

Run the Express server only

npm run server

Run the React client only

npm run client

Server runs on http://localhost:5000 and client on http://localhost:3000

To run the the test for client, navigate to /client diretory and run

npm run test