Inspiration
Very frequently, we use social media apps, such as Discord and Instagram, to convey information to our peers, such as if a class is cancelled or if an exam has been announced. However, no matter how useful these apps are, it is factual to say that they are also used to divert attention with reels, posts, and other distractions. Therefore, the solution seemed very obvious: a social media app for students, by students.
What it does
StudiLink is a shared calendar for the whole class, with an easy way to add events. Instead of scrolling through a group chat to find out if the quiz is still on Friday, everyone looks at the same calendar. You sign up with an email and password, log in, and see what your class has planned.
How we built it
We built this project with React and Hono, mixing JavaScript and TypeScript. The API runs on Hono, and Zod checks every request body. Accounts and events live in a Neon Postgres database that we talk to with Drizzle. Login uses a signed cookie session, so the browser keeps you logged in without us touching tokens in the frontend. The backend runs on Vercel, and it generates its own API docs page, which helped us test routes before the frontend existed.
Challenges we ran into
Cookies were the biggest one. The login route worked fine when we tested it with curl, but the browser would not keep the cookie. It turned out to be about origins: the frontend and backend were on different addresses, and browsers throw away cookies from cross-origin responses unless CORS is set up for it.
Getting the backend running on Vercel was the other one. The deploy built without errors, but every request crashed on startup with an error that did not say which import had failed. We ended up reading the function logs and the repo to track it down.
Accomplishments that we're proud of
We have real accounts, with passwords and sessions, and a calendar that a whole class can share. We built it during the hackathon, and the login flow is something we would have been fine shipping to real students.
What we learned
A deployed server is not the same as your laptop. Environment variables do not come along, only committed files get built, and the logs are often the only way to see what happened. We also learned how cookies, CORS and origins actually work, because we had to fight them, and that tests with curl are a fast way to tell whether a bug is in the backend or the browser.
What's next for StudiLink
Support for more than one class per student, so you can follow all of your courses in one place. Reminders before events, and a quick way to mark an event as cancelled or moved, since that was the original reason we wanted this app.
Built With
- hono
- react