https://github.com/mzdm/4it572_docker
https://github.com/mzdm/4it572_docker
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mzdm/4it572_docker
- Owner: mzdm
- License: mit
- Created: 2022-10-11T17:14:44.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-15T21:45:51.000Z (over 2 years ago)
- Last Synced: 2025-01-02T02:43:21.306Z (5 months ago)
- Language: JavaScript
- Size: 9.85 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## Installation Guide
- Install GIT - https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
- Install Docker - https://www.docker.com/products/docker-desktop## Build/Run
- Source code of the React app is based on "react-shopping-cart" app made under MIT license by Jefferson Ribeiro#### Requirements
- Node.js
- NPM```javascript
/* First, Install the needed packages */
npm install/* Then start both Node and React */
npm start/* To run the tests */
npm run test/* Build sources */
npm run build/* Running e2e tests */
npm run wdio/* Deploy to Firebase */
./node_modules/.bin/firebase deploy --token=$FIREBASE_DEPLOY_TOKEN
```### Docker commands
```dockerfile
docker image --help
docker image build -t eshop:1 .
docker image ls
docker image history eshop:1
docker image inspect eshop:1# Runs the container in detached mode, -p host_port:container_port. Opens http://localhost:3000
docker container run -d -p 3000:3000 eshop:1
docker container ls -a# Gets into running container
docker exec -it eshop bin/bash
```## About tests .
- Unit tests
- All components have at least a basic smoke test
- Integration tests
- Fetch product and add to cart properly
- e2e
- Webdriverio - Add and remove product from cart### Copyright and license
The MIT License (MIT). Please see License File for more information.
Try to trigger