Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cloudacademy/stocks-app
Stocks App
https://github.com/cloudacademy/stocks-app
ajax api cloudacademy cors react
Last synced: about 1 month ago
JSON representation
Stocks App
- Host: GitHub
- URL: https://github.com/cloudacademy/stocks-app
- Owner: cloudacademy
- Created: 2023-05-01T10:12:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-12T05:46:56.000Z (about 1 year ago)
- Last Synced: 2024-04-14T07:42:47.787Z (8 months ago)
- Topics: ajax, api, cloudacademy, cors, react
- Language: HTML
- Homepage:
- Size: 1.2 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stocks App
Microservices Stock Application![Stocks App](/docs/stocks.png)
## Build Instructions
1. Build the `cloudacademydevops/stocks-app` frontend UI container image. Run the multi-stage Dockerfile:
```
docker build -t cloudacademydevops/stocks-app .
```## Container Launch Instructions
The UI container image can be launched using the following commands:
- Starts the container instance with Nginx `proxy_pass` enabled for the `/api/stocks/csv` path, useful for demonstrating service discovery on downstream components etc:
```
docker run --rm -it --name stock-app --env NGINX_APP_APIHOSTPORT=api.10.0.0.100.nip.io:8000 --env NGINX_DNS_RESOLVER=8.8.8.8 -p 8080:8080 cloudacademydevops/stocks-app
```- Starts the container instance **without** the Nginx `proxy_pass` enabled for the `/api/stocks/csv` path:
```
docker run --rm -it --name stock-app -p 8080:8080 cloudacademydevops/stocks-app:v2
```