Skip to content

adicu/devfest-2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevFest-2024 Website

DevFest 2024 Website created with Next.js, utilizing React.

Useful Tutorials

  1. How to Make a React Next JS Website - Beginner Tutorial Using Styled Components (22 mins) - Good overview of the stack we'll be using (NextJS and Styled Components). The only difference is that when he imports from styled-components, we'll import from @emotion/styled.
  2. useEffect and useState in NextJS - React Hooks (5 mins) - Goes over basic React hooks that are probably going to be needed for the project.
  3. React Tutorial for Beginners (1hr 20mins) - More comprehensive React tutorial that goes over how React works, custom components, rendering lists, etc.

Getting Started

Clone the Github repo:

git clone https://github.com/adicu/devfest-2024.git

Enter the cloned directory:

cd devfest-2024

Ensure you're on the correct git branch

# replace <branch> with branch name
git checkout <branch> # Switches to existing branch
git checkout -b <branch> # Creates new branch from current branch

NOTE: It's always a good idea to run git pull before you start working and after you switch branches to ensure you have the latest version. You can also always run git status to check what branch you're on.

Install Node dependencies:

npm install

Run the development server:

npm start

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

You can start editing the home page by modifying src/pages/index.js. The page auto-updates as you edit the file.

We are going to place our reusable components in the src/components directory.

Working on Issues

Under the "Issues" Github tab, you can find any issues that need addressing. Click on an issue you want to work on.

On the right side of the issue page under the "Development" pane, there is a "Create a branch" button. Click on "Create a branch"

In the window that pops up, enter an appropriate branch name or leave it as what's assigned by default (may be best). The branch source should be "main" by default, which is usually what you want, but if you need to change it, click on "Change branch source" and select the appropriate branch. Click on "Create branch" when you've set everything correctly.

Once you've created the branch, run git pull or git fetch in your local directory, then switch to the new branch by running git checkout <branch>

You can now begin making your changes. When you're done, follow the instructions below to push your changes.

Pushing your changes

Ensure you're on the correct git branch.

The changes will be pushed to the same branch you're on locally.

Run git status to check your current branch. If you need to change branches:

# replace <branch> with branch name
git checkout <branch> # Switches to existing branch
git checkout -b <branch> # Creates new branch from current branch

Add changes to staging area:

git add <your_file_or_folder_name> # Adds specific files
git add . # Adds all files in current directory

Run git status and check the list of files under Changes to be committed:. Ensure you want to commit all files listed here.

Run git commit -m "commit_message_here" to commit your changes.

Finally, run git push to push your changes to the remote repo.

Recommended VSCode Extensions

More Information

API Routes

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.js.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Learn More about Next.js

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

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!