Skip to content

Next.js Foundations - A beginner-friendly, example-led course to learn Next.js by building a simple web application step-by-step.

Notifications You must be signed in to change notification settings

JanneImmonen/nextjs-foundations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Next.js Foundations

This project is a beginner-friendly, example-led course to learn Next.js by building a simple web application step-by-step.

Table of Contents

  1. Features
  2. Getting Started
  3. Project Structure
  4. Available Scripts
  5. Contributing
  6. License

Features

  • React.js
  • Next.js
  • Custom styling with CSS Modules
  • Header and Footer components
  • Home and About pages

Getting Started

To set up the project locally, follow these steps:

  1. Clone the repository:

git clone https://github.com/yourusername/nextjs-foundations.git

  1. Change the directory to the project folder:

cd nextjs-foundations

  1. Install the dependencies:

npm install

  1. Start the development server:

npm run dev

  1. Open your browser and navigate to http://localhost:3000. The application should be running.

Project Structure

. ├── components │ ├── Footer.js │ ├── Header.js │ └── Navigation.js ├── pages │ ├── about.js │ └── index.js ├── public │ └── favicon.ico ├── styles │ ├── Footer.module.css │ ├── Header.module.css │ ├── Home.module.css │ ├── Navigation.module.css │ └── globals.css ├── .gitignore ├── package.json ├── README.md └── next.config.js

Available Scripts

In the project directory, you can run:

npm run dev

Starts the development server.

Open http://localhost:3000 to view the application in the browser.

The page will reload if you make edits.

npm run build

Builds the app for production to the .next folder.

It correctly bundles React in production mode and optimizes the build for the best performance.

npm start

Starts the production server.

Make sure you have built the application with npm run build before running this command.

Contributing

Contributions are welcome! To contribute:

  1. Fork the repository.
  2. Create a new branch with a descriptive name (e.g., add-new-feature).
  3. Make your changes in the new branch.
  4. Commit your changes and push the branch to your fork.
  5. Create a pull request from your branch to the original repository.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Next.js Foundations - A beginner-friendly, example-led course to learn Next.js by building a simple web application step-by-step.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published