Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: initial version of Deno Hunt and restructure #106

Merged
merged 8 commits into from
Apr 21, 2023
Merged

Conversation

iuioiua
Copy link
Contributor

@iuioiua iuioiua commented Apr 20, 2023

The Deno SaaSKit demo is pivoting to becoming Deno Hunt instead of a to-do list app (see announcement here).

In the spirit of learning early, this PR sets the foundations of a Deno Hunt implementation while re-working some previously suboptimal aspects. The re-working focuses on reducing the number of moving parts required for workflows and bringing closer functionalities that work together. Please keep in mind that any change made here can be disputed, and questions are welcome.

Here's a summary of what's changed:

  • /api/subscription route has changed to a more appropriately named /api/stripe-webhooks
  • API endpoints have moved into their associated endpoints. E.g. POST method /api/login to /login, etc.
  • To-do list logic has been removed and replaced with items, including a new table in the database.
  • Some components have been moved into other component files. E.g. <Header /> is only ever used in <Layout />, so it's been moved to the Layout.tsx file, etc.
  • The dashboard has been removed in favour of the /account tree.
  • A bit of restyling of inputs and buttons.

The following features are missing but can be added in proceeding PRs: comments, voting, author pages, item text, ranking algorithm, and item limit on the front page.

You can play around with the preview deployment by clicking the View deployment button below.

Towards #103

@matthew-dean
Copy link

Just a question -- Deno SaasKit is self-explanatory and intuitive in what it is and used for. Deno Hunt is... I don't know what? The announcement doesn't really make this clear. Is it no longer a SaasKit? Or is, but additionally something else?

@iuioiua
Copy link
Contributor Author

iuioiua commented Apr 20, 2023

Deno SaaSKit is the set of tools used to create SaaS-based websites. Deno Hunt is an example of what you can build with SaaSKit and will be something like Product Hunt (hence the name) and Hacker News. Probably more like Hacker News.

@iuioiua iuioiua requested review from kt3k and lambtron April 21, 2023 04:31
@iuioiua iuioiua marked this pull request as ready for review April 21, 2023 04:32
@iuioiua iuioiua requested a review from hashrock April 21, 2023 04:32
Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iuioiua iuioiua merged commit ecf0c98 into main Apr 21, 2023
@iuioiua iuioiua deleted the deno-hunt-1 branch April 21, 2023 23:44
This was referenced Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants