https://github.com/mirantis/k8srnd-sockshop-front-end
https://github.com/mirantis/k8srnd-sockshop-front-end
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mirantis/k8srnd-sockshop-front-end
- Owner: Mirantis
- License: apache-2.0
- Created: 2019-09-11T07:14:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T21:50:08.000Z (over 2 years ago)
- Last Synced: 2025-01-17T12:17:46.817Z (4 months ago)
- Language: HTML
- Size: 46.7 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/microservices-demo/front-end)
[](http://microbadger.com/images/weaveworksdemos/front-end "Get your own image badge on microbadger.com")Front-end app
---
Front-end application written in [Node.js](https://nodejs.org/en/) that puts together all of the microservices under [microservices-demo](https://github.com/microservices-demo/microservices-demo).# Build
## Dependencies
Name
Version
Docker
>= 1.12
Docker Compose
>= 1.8.0
Make (optional)
>= 4.1
## Node
`npm install`
## Docker
`make test-image`
## Docker Compose
`make up`
# Test
**Make sure that the microservices are up & running**
## Unit & Functional tests:
```
make test
```## End-to-End tests:
To make sure that the test suite is running against the latest (local) version with your changes, you need to manually build
the image, run the container and attach it to the proper Docker networks.
There is a make task that will do all this for you:```
make dev
```That will also tail the logs of the container to make debugging easy.
Then you can run the tests with:```
make e2e
```# Run
## Node
`npm start`
## Docker
`make server`
# Use
## Node
`curl http://localhost:8081`
## Docker Compose
`curl http://localhost:8080`
# Push
`GROUP=weaveworksdemos COMMIT=test ./scripts/push.sh`