Skip to content

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

Notifications You must be signed in to change notification settings

ChrisDev18/burnfm-recoded

Repository files navigation

BurnFM - recoded

Screenshot 2024-01-22 at 06 11 24

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:

Editing the project and viewing changes

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Then open http://localhost:3000 with your browser to see the website running locally.

Deploying to static HTML/CSS/JS

Once you are happy with your changes, you can run the following command in the terminal (open within the project) to compile everything to static files:

next build

This will create a out file within the project root. This can be put onto a web server in order to serve the website.

See Next.js - Deploying for more information.

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

Packages

No packages published