satitpm-council / pm-station

"PM Station", A school radio project with music and content.
0 stars 1 forks source link

[Migration] Refactor website to Next.js #1

Open lemasc opened 1 year ago

lemasc commented 1 year ago

At the time of development, the main website client-web decided to use Remix framework because of its nested layout support. However, as Next.js 13 provides beta support for the app directory, it can achieve the same result. Also, Remix is now working on a v2 release, which has a breaking change on the routes directory. From my perspective, this change bring more complexity on development. This PR aims to migrate the main website to Next.js.

The kiosk add-on website kiosk-web, will also be migrated and will be merge with the main website, resulting in a single Next.js website to be deployed. It will be easier to develop, test, and deploy.

Note that this PR will migrate the core features as much as possible, but not every features are migrated. There's a plan of migration that may add or remove some features and dependencies. It may not be complete, but usable.

lemasc commented 1 year ago

I decided that this should be done the last, to make this migration more organized by each PR describing the change. This PR will be stale for a while until all changes are made.

lemasc commented 1 year ago

The global app config style is not efficient. Instead let's use .env files as we would do, and use Vercel CLI to set API keys and secrets for each environment.

For the documentation we can write it some where else.

lemasc commented 1 year ago

I will start integrating Youtube Music API to this app, as explained in #5. This should be a breaking change, since we change the engine and schema on how the songs should be structured, However, after the discussion, I decided to keep both engines for flexibility.

lemasc commented 1 year ago

I will start creating separate PRs based on the current state, to make changes and allow rollbacks. Mainly will be experimenting on databases, as mention in #3.

vercel[bot] commented 10 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
pm-station ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 19, 2023 5:26am