fatih-yavuz / links.dev

A free linktree alternative only for devs. Get a nice page at links.dev/username. Simple site to group all your links. Register your username before someone else does.
MIT License
227 stars 149 forks source link

Brainstorm: Create a static website with Next.js #148

Closed fatih-yavuz closed 1 year ago

fatih-yavuz commented 1 year ago

In the backend, there is a Django Application running on two servers and there is a GitLab pipeline running for deployments. I think this is overkill. We don't need that.

It can be a simple HTML file and be served directly from GitHub without needing servers. I was thinking of moving the backend from GitLab to here but I think this approach is way better.

haliliceylan commented 1 year ago

https://github.com/htmlpreview/htmlpreview.github.com

A repository I came across recently, as far as I understand, we can make a static website using JavaScript and user browser then render the Page.json file of the user. But I'm not sure if we're stuck on CORS, we need to look at the cors options for raw.github.com.

itsbrex commented 1 year ago

One other option could be something like John-Doe https://github.com/cadars/john-doe - single-file html sites

fatih-yavuz commented 1 year ago

@haliliceylan CORS is not a problem with GitHub Raw.

@itsbrex It is a good idea but it is a bit away from only link aggregation

fatih-yavuz commented 1 year ago

Having a backend also has its own benefits. I am thinking of sticking to the backends after thinking about it. And there is no need to move the backend to GitHub because the GitLab pipeline is fantastic. I open-sourced the backend. You can find the repo on the README