Skip to content

ChrisDev18/burnfm-recoded

Repository files navigation

Burn FM - recoded

Burn FM's website: burnfm.com, recoded with Next.js since 2024


Burn FM Screenshot

Getting started

Prerequisites

You'll need node.js installed on your computer for this to run.

1. Install required node modules

All node.js projects have a package.json file which indicates what node libraries are required in the project. First, you will need to download these via:

npm install

2. Run development server

Then, run the development server with:

npm run dev

Open http://localhost:3000 with your browser to see the result.

3. Editing and see changes in real-time with Fast Refresh

You can start editing any page by modifying its respective page.tsx file. The page will auto-update as you edit the file.

Note

The website's styling is being transitioned to TailwindCSS; prefer this over plain CSS.

Deployment on Vercel

This repository is linked to Vercel which will automatically build a deployment each time someone pushes to a branch.

Important

Pushes to the main branch trigger a production build.

You can test on your computer whether your code will build before pushing to GitHub by running the following:

next build

This will create a out file within the project root.

See Next.js - Deploying for more information.

Project structure

All source code for the frontend can be found within src. Backend config files and php files can be found in server.

App Routing

This project uses the new App Router architecture from Next.js. Below is some information about how this project is organised using this router.

  • Each folder containing a page.tsx file represents a page on the website.

  • For example: app/page.tsx defines burnfm.com, and app/about/page.tsx defines burnfm.com/about.

  • layout.tsx files define shared UI which can be inherited by children pages a similar concept to templates).

  • For example: app/layout.tsx defines the overall layout of the app (navbar at top, content below).

See Next.js - App Routing for information about this concept and its application.

Further files

Outside of these two special files, there are more places where code is organised:

Learn More

To learn more about Next.js, take a look at the following resources:

About

Recoding the BurnFM.com website using React and Next.js

Resources

Stars

Watchers

Forks

Contributors