Skip to content

Latest commit

Β 

History

History
84 lines (52 loc) Β· 2.43 KB

File metadata and controls

84 lines (52 loc) Β· 2.43 KB

πŸ€– GitHub Copilot Exercises

Open in GitHub Codespaces

This repository is a hands-on playground for GitHub Copilot exercises.

The exercises live in the exercises directory:

The exercises are performed against the small full-stack Gantt chart application included in this repo. The app is intentionally simple so you can focus on practicing Copilot workflows rather than learning a complex codebase.

No prior knowledge of TypeScript or Node.js is required for the exercises.


πŸ“Š The Gantt Chart App

A full-stack Gantt chart app for planning and tracking tasks across time, used as the playground for the exercises above.

πŸ› οΈ Technology stack

  • 🎨 Frontend: React + TypeScript + Vite
  • βš™οΈ Backend: Express + TypeScript
  • πŸ’Ύ Storage: JSON file via lowdb (single-file DB)

βœ… Requirements

  • Node.js 20+

πŸš€ Getting started

Option A β€” local development

Requirements: Node.js 20+

npm install
npm run dev

Then open http://localhost:5173.

The Vite dev server proxies /api requests to the backend at http://localhost:3000.

Option B β€” GitHub Codespaces

Click the badge at the top of this README (or go to Code β†’ Codespaces β†’ Create codespace on main). Dependencies are installed automatically; just run:

npm run dev

VS Code will prompt you to open the forwarded port 5173 in your browser.

πŸ“ Project layout

backend/   Express + lowdb REST API
frontend/  Vite + React UI

πŸ“œ Scripts

  • npm run dev β€” runs backend and frontend concurrently
  • npm run build β€” builds both packages
  • npm run start β€” starts the built backend (serves the API only)

πŸ§ͺ Tests

Backend unit tests use Vitest:

npm test -w backend           # run once
npm run test:watch -w backend # watch mode

πŸ—‘οΈ Resetting the data

The database lives at backend/data/gantt.json. Delete that file to start fresh; the backend will recreate it with a default chart on the next start.