With your backend API ready, this tutorial focuses on connecting the frontend,
managing state, implementing data fetching with React Query, setting up CI/CD
pipelines with GitHub Actions, and deploying to the cloud. By the end, your
full‑stack application will be live and accessible to users.
Why this matters:
CI/CD automates testing and deployment, ensuring your application is always
in a deployable state. Cloud deployment makes your application accessible
to the world.
1. Frontend Setup
Set up your React (or chosen framework) project with the necessary
dependencies for API integration.
Write a GitHub Actions workflow that runs tests on every push to the main
branch.
Sample answer
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npm run test
- run: npm run build
Homework
Homework 1
Complete the frontend integration for your capstone project. Connect all API
endpoints, manage state, and set up CI/CD. Deploy your application to the cloud.
Sample outline
Frontend: Complete all pages and components.
API: Use React Query for all data fetching.
CI/CD: GitHub Actions workflow that tests and deploys.
Deployment: Frontend on Vercel/Netlify, Backend on
Render/Heroku.
Documentation: Update README with live URLs.
Mini‑Project
Full‑Stack Deployment Sprint
Complete the full‑stack deployment of your capstone project:
Connect frontend to backend API
Implement all data fetching with React Query
Set up GitHub Actions for CI/CD
Deploy frontend (Vercel) and backend (Render)
Test the live application
Sample outline
Frontend: Deployed to Vercel at vercel.app
Backend: Deployed to Render at onrender.com
CI/CD: GitHub Actions runs tests and deploys on push
Testing: End‑to‑end test the live application
Tutorial Summary
You connected your frontend to the backend API, implemented data fetching
with React Query, managed client state with Zustand, set up CI/CD with
GitHub Actions, and deployed your application to the cloud. Your capstone
project is now live and production‑ready.
Key takeaway: CI/CD and cloud deployment are essential
for modern development. Automating your pipeline reduces errors and
accelerates delivery.