Find out if something is recyclable in Hamilton
This is a site that I made because I found it difficult to look up how to sort my garbage and recycling in Hamilton. And I wanted to learn Svelte and SvelteKit. Special thanks to Will for the name.
Thanks for stopping by!
— Jason, Feb 2023
- 🔍 Search for items that you're curious about sorting.
- 👀 See a preview in the search results of where something might be sorted.
- 🖼 View more details about specific items, and see a list of related items.
- 📚 Browse a list of all available results.
- ⏱ Recent searches are stored locally in your browser. (I've found myself looking up things more than once.)
- ☝️ See an alert around notable times in the pickup calendar. (Like when collection is a day later.)
This is a SvelteKit app made with their TypeScript starter. Styling is done with Tailwind and was added to the project using this handy repo svelte-add/tailwindcss. Code is formatted with Prettier. I'm using the Prettier plugin prettier-plugin-tailwindcss
to automatically sort tailwind classes in code.
You'll need at least node 18
.
Once you've installed dependencies with npm install
, start the development server:
npm run dev -- --open
The app will be running at
http://localhost:5173/
Once running, you can edit files, save them, and it'll update in the browser. Make new commits on a feature branch. Branches on this remote will be built on netlify.
You can run npm run build
locally to check if the build and deploy will succeed. You can then preview the production build with npm run preview
. Or just push and see.
Once updates are ready, pulling into main
will get built and deployed to: https://hamiltoss.fyi/
- Added
adapter-netlify
for this.