Visualize customer data that is stored in a CSV file:
Manage the Containers/Kubernetes using the Kubernetes Dashboard:
Given: a dataset that contains the name, company, address and contact information of 500 people in the US (randomly generated).
Dataset: us-500.csv
source from Free Sample Data - BrianDunning.com
Task:
-
Create a web interface that retrieves and displays the dataset in the table.
-
Search people based on two given inputs: search field and target value
- For example, if the search field is state and the target value is NY, the result table should contain all people in the dataset who live in NY state.
- If searched by first_name (e.g., Valentine) with a single result, display the user icon (user.png) with information about that person instead of the table.
- If searched by company_name (e.g., Printing Dimensions) with a single result, display the video (example.mp4) along with other information like company name and address.
-
Show summary statistics, such as the number of people per state
-
Create a visualization to show the distribution of the people across the US, which can depend on the state or zip code.
- Frontend:
- Language:
- TypeScript (JavaScript)
- Frameworks/Libraries:
- React.js
- Tailwind CSS
- Language:
- Backend:
- Language:
- Go
- Frameworks/Libraries:
- Gin
- Language:
- Deployment:
- Linux Server
- Docker
- Nginx
- Kubernetes (MicroK8s)
- CI/CD:
- GitHub Actions
Install Kubernetes and kubectl, then run the following commands:
# Go to the project directory:
$ cd path/to/data-visualization-demo
# Apply the Kubernetes yaml files:
$ kubectl apply -f k8s
The project will be running on http://localhost:30011
Install Docker and Docker Compose, then run the following commands:
# Go to the project directory:
$ cd path/to/data-visualization-demo
# Build the container without using cache:
$ docker compose build --no-cache
# Run the container in the background (detached mode):
$ docker compose up -d
# The project now is running on http://localhost:5173
# Stop the container:
$ docker compose down
Note: You can change the RootAPIURL
in frontend/src/components/RootAPIURL.ts
.
Details: check out .github/workflows/docker_build.yml