Skip to content

peippo/lunch-voter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 

Repository files navigation

Banner image

Lunch restaurant voting app frontend built for Solidabis coding challenge. The Spring Boot backend was provided & ready to use, and only minor adjustments related to cookies/Heroku were added.

Note: the backend is running on Heroku and is probably sleeping, it will take a short while to wake up.

Tech

  • Built with Typescript & Sveltekit
  • Styling with Tailwind
  • Uses SWR package for data fetching/caching & window focus revalidation
  • E2E tests with Playwright
  • Backend runs on Heroku, frontend at Vercel

Issues

  • Voting does not work in Safari, probably due to the server & client being hosted at different domains and third-party cookies being blocked by default
  • Tests related to voting fail due to cookie issues, couldn't figure out a fix

Running locally

Server

./gradlew bootRun

Note: I never ran this locally but I suppose it will still work after the small changes

Client

npm install
npm run build
npm run preview

Running tests

npm run test