Setting Up the Codebase
To get started with the development, you'll need to fork and clone the repository to your local machine. Below are the steps to guide you through this process:
Before doing this, make sure you have Node.js and Github Command Line Tools installed on your machine.
Forking the Repository
- Navigate to the Emerging Coders Website repository (opens in a new tab) on GitHub.
- In the top-right corner of the page, click the Fork button. This will create a copy of the repository in your GitHub account.
Cloning the Repository
- Now, go to your fork of the Emerging Coders Website repository in your GitHub account.
- Click the Code button (it's green) found at the top-right part of the repository.
- Copy the URL provided in the HTTPS tab.
- Open a terminal on your machine.
- Navigate to the directory where you want to clone the repository.
- Run the following command, replacing
your-username
with your GitHub username:git clone https://github.com/your-username/Emerging-Coders-Website.git
Loading the Codebase
-
Once the repository is cloned, navigate into the project directory:
cd Emerging-Coders-Website
-
Now, install the necessary dependencies by running:
npm install
or if you prefer using Yarn:
yarn install
-
After the dependencies are installed, you can start the development server by running:
npm run dev
or with Yarn:
yarn dev
Now, the project should be running locally on your machine. Open your web browser and navigate to http://localhost:3000
to view the website. As you make changes to the code, the website will automatically update to reflect those changes, thanks to the hot-reloading feature provided by Next.js.