Author: Rajbir Johar and Ajeet Kokatay
Contributors: claynaut J.S. Pescasio
Install Windows Terminal. This is how you will be navigating to your project/repo and getting it up and running.
Open Terminal or install any other Command Line Interface software such as iTerm2, kitty, etc. This is how you will be navigating to your project/repo and getting it up and running.
If on Mac, install Homebrew as well. This is an incredibly useful package manager for Mac. If you're on the new M1 Chip, find the Terminal Application in Finder, right click it, and click start as Rosetta before installing Homebrew. You can copy and paste this line in your terminal.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install yarn: https://classic.yarnpkg.com/en/docs/install/#debian-stable
Clone project
git clone https://github.com/citrushack/Citrushack2021.git
cd CitrusHack2021
yarn install
yarn dev
- visit http://localhost:3000
Familiarize yourself with the basic but essential Command Line operations here.
Install Git Command Line Tools and follow the instructions based on your Operating System.
Install Node.JS.
Install Yarn (We use Yarn for our web package manager).
Install your code editor of choice. Popular ones include VS Code, Atom, Sublime, etc.
Install atleast two to three popular browsers (Safari, Firefox, Chrome, Edge, etc). You will be testing on each browser for cross compatibility.
- Open up your terminal and make a new folder called Projects using the command
mkdir Projects
(Or don't. This just helps keep all the repos in one place). - Change into the new directory using
cd Projects
. - Clone this repo by clicking the green button at the top labeled "Code" and copy the link you see.
- Type
git clone "link"
and paste the link where "link" is without the quotation marks. ls
to list all contents of Projects. You should see a new directory with the same name as the repo.cd
into the new directory.- Type
yarn
to install all necessary packages. You will encounter errors but they won't affect anything. - Open the repo in your preferred code editor. This is where you can examine or edit code. (Do not change or commit anything to the master branch. More on this later.)
- To start the project locally, run
yarn run dev
in your terminal while still inside your repo directory. - Open up a browser and type
http://localhost:3000
into the address bar. If everything is done correctly, you should now be able to view the project as if it were online. To quit the project, simply use the shortcut Ctrl+C in your terminal to stop the instance.
Steps 1-7 only need to be done once. Step 8-10 are how you will be editing and viewing the project.
Before you go wild on contributing:
- Make your own branch with
git branch name-of-branch
. - Change branch with
git checkout name-of-branch
. - View all branches and what branch you are currently on with
git branch
.
Once you've done that:
- To check what files have been edited, use
git status
. - To add files to be committed, use
git add file-name
orgit add -A
to add all files. - To commit files, use
git commit -m "Write a useful message here to show what changes you have made"
. Include the quotation marks. Ensure to commit frequently so as to record what changes you've made. - To upload your commits onto Github, use
git push
. If it's your first time pushing commits from a new branch, usegit push -u origin name-of-branch
to push your entire local branch to Github. - Go to the repo on Github and click on "Pull Requests" at the top. Start a new pull request and compare your branch to master and on the righthand side, assign the webdev leads to review your code. Then finally, click Open Pull Request. Under no circumstances should you click Merge.
- NextJS - The frontend framework used for this project. Highly recommend reading through the docs and going through the tutorial to familiarize yourself with the structure of the project.
- Strapi - Used for the backend
- what-input - removes default border when elements are selected such as buttons.
- react-scroll - used to scroll to different sections via navbar
- react-accessible-accordion - used for accordion component
- ogl - used for the custom mouse trails
- tsparticles - used for the particles