ghernagon / walmart-challenge

walmart app challenge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Walmart Challenge

Demo

https://walmart-challenge-node.herokuapp.com/

How to run

with Docker

This will build a container for mongodb with products collection provision and app, then it will run both containers

You can access your docker (http://localhost:3000)

docker-compose up -d 

If something goes wrong, please use

docker-compose down
docker-compose up -d 

To run Unit and Integration Tests

docker exec -i -t <YOUR_CONTAINER_NAME> /bin/bash
npm run test

To generate test coverage

npm run test-with-coverage

Without Docker

Use the package manager npm

cd app
npm install

Usage

npm run develop

To run Unit and Integration Tests

npm run test

To generate test coverage

npm run test-with-coverage
open coverage/index.html

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

walmart app challenge


Languages

Language:HTML 68.1%Language:JavaScript 21.6%Language:CSS 4.0%Language:Shell 3.4%Language:EJS 2.9%Language:Dockerfile 0.1%