Skip to content

~ $ cat work/skillmatch.md

SkillMatch

A workshop marketplace where students attend, review, and host short classes.

Full-stack · Spring 2026BCIT team project with Clayton Liang and Ky Thai. I wrote 105 of 199 commits and merged 28 of 64 pull requests in the team repo.

OUTCOME
I made 105 of the team’s 199 commits
SCOPE
Backend & DevOps lead, 3-person team
DECISION
Treat workshop capacity as a server invariant, not just a disabled-button concern.
EVIDENCE
A live app, the team repository history, and the exact route source shown below.

Built with

  • React
  • TypeScript
  • Node.js
  • Express
  • MongoDB
  • JWT

What it is

SkillMatch is a website for short workshops. Instructors can post a class, and students can find one, sign up, and leave a review afterwards.

It was a BCIT course project built by a team of three in four weeks. I worked on the parts where a student attends, reviews, and hosts a workshop.

What it can do

  • Browse by topic

    Workshops are grouped by topic, such as front-end, back-end, graphic design, DevOps, and databases. Tap a topic to see only those.

  • A page for every workshop

    Each workshop shows its schedule, its location, who is attending, and what past students said.

  • Sign up and get a ticket

    Registering gives you a reference number and a QR code receipt for the workshop.

  • Reviews from attendees

    Once you have attended a workshop, a star-rating form opens up for it.

  • Host your own

    Anyone with a skill to share can fill in a form, preview how the workshop will look, and publish it.

  • Seats left at a glance

    The attendance card changes colour as a workshop fills up, and the Attend button switches off when it is full.

How a request flows

  1. React + ViteTypeScript SPA, lazy routes
  2. Express APIVercel service at /_/backend
  3. JWT middlewareprotectRoute on writes
  4. MongoDB AtlasMongoose models, keepalive ping

How it works

  1. 01

    You sign in. The site gives you a secure pass that proves who you are each time you do something.

  2. 02

    You browse the workshops and open one that looks interesting.

  3. 03

    You register, and your name is added to the list of people attending.

  4. 04

    After you have attended, the review form opens and you can leave a star rating.

  5. 05

    To host a workshop, you fill in a form, check the preview, confirm, and the workshop is saved for everyone to see.

Screenshots

Workshop dashboard
Workshop details
Registration flow

Why

Students wanted a simple way to find focused workshops outside their regular courses, and to run one themselves if they had a skill to share.

What I built

  1. 01

    Built the attend-and-review flow: completing checkout registers you as an attendee, which then unlocks a star-rating review form.

  2. 02

    Wrote the Express routes for attending, reviewing, and hosting a workshop, behind the JWT middleware that protects them.

  3. 03

    Built the host-a-workshop flow end to end: form, preview, confirmation, and a POST route that saves to MongoDB, with form state restored when you go back to edit.

  4. 04

    Added capacity feedback: the attendance card changes colour at 75% and 90% full, and the Attend button is disabled once a workshop is full.

  5. 05

    Worked on first-load latency by preloading key routes, splitting React and UI libraries into separately cached chunks, and pinging MongoDB Atlas every five minutes so the first request of the day is less likely to hit a cold database connection.

  6. 06

    Replaced browser alert() errors with toast notifications and wrote a seed script for realistic workshop and user data.

The code

backend/routes/workshopRoutes.js
router.post('/:id/attend', protectRoute, async (req, res) => {
  try {
    const workshop = await Workshop.findById(req.params.id);
    if (!workshop) return res.status(404).json({ error: 'Not found' });
    if (workshop.attendees.includes(req.user._id))
      return res.status(400).json({ error: 'Already attending' });

    workshop.attendees.push(req.user._id);
    await workshop.save();
    res.json(workshop);
  } catch (err) {
    res.status(500).json({ error: 'Failed to attend' });
  }
});
What happens when someone presses Attend. It stops you from signing up twice, but it does not check whether the workshop is already full. That gap is explained in the trade-off below.

Outcome

A live marketplace where students can browse, check out, attend, and review workshops, and anyone can host one. The front end and Express API deploy together on Vercel.

The trade-off

Workshop capacity is checked in the interface, not enforced by the API. That was quick to build and gives instant feedback, but the attend route only checks that you are not already attending, so two people taking the last seat at the same moment would both get in. The API should be the source of truth for anything a user could race.

What I learned

Reading my own route back months later, I could see the gaps are on the server, not the screen. A disabled button is a hint; the rule has to live in the API.

What I'd fix next

Make the attend route atomic with a single conditional update (only add the user if the attendee count is still below the seat count), and fix the owner check, which compares an ObjectId to a string and so never matches. Then add integration tests for both.