Giter VIP home page Giter VIP logo

hacktober-fiesta22's Introduction

HACKTOBER FIESTA - 22

Prerequisites

  • Sign up to Hacktoberfest 2022
  • Have a photo of yours ready in 1:1 ratio. To make it in 1:1 ratio edit the photo and select the crop icon. From there select the square icon, this ensures your photo is in 1:1 ratio.
  • Install VsCode, NodeJs, Git and have an account in Github
  • Have python and pip installed on your system

Note

  • Create a new pull request, only after the previous one is accepted

Setup

Step 1 - Fork

As the first step, you have to fork this repository to your own github account. For that please click on the fork button on the top right corner of your window.
You will now have the forked repository among your own repositories.
Fork

Step 2 - Clone

Clone the repository to your local machine using the git command.

git clone <url_to_forked_repository>

Step 3 - Changing working directory

This will change the working directory to the newly cloned repository.

  cd HACKTOBER-FIESTA22/

Step 4 - Install Requirements

For portfolio, Use npm to install modules.

cd portfolio/
npm install

For pygame ,Use pip to install packages

cd pygame/
pip install -r requirements.txt

Note : Run the commands from HACKTOBER-FIESTA22 folder


Step 5 - Run the application

For portfolio, The application can be run using the command. The application will be running at localhost:3000 by default.

cd portfolio/
npm run dev

For pygame, Run the python script

cd pygame/
python main.py

Tasks

PR 1 - Create your pygame

  1. Create a username.py file in the pygame/gameit folder. You can create your game in this file. An example game is given in the example.py file inside the same folder provided.

Some ideas for games are -

  • Flappy Bird
  • Snake Game
  • Retro Racing Game
  • Sudoku Games

Make sure that the game created is a callable function like the one in example.py,

  1. Import your game function in pygame/main.py and add the function to games mapping
from gameit.username import functionName

....

games = {
    'example':exampleGame
    ...
    ...
    'username':functionName # add like this
}


Intial Commit

You can check your change using the following command

 git status

this command will show you the changes that you have made and left untracked, you have to add these changes to the staging area.


Now, you should add it to the staging area using the following command.
  git add .

. specifies to add all the chnges to the staging area.
Now that the changes are tracked or added to the staging area you should make a commit regarding that particular change using the following command in the terminal.

  git commit -m "<commit message>" 

The commit message message should specify what is the change made for, it will result in well documentation of the project



Pushing the commit

Now that you have commited your changes you should push the changes to the remote git repository for that you can use the following command, given below

  git push -u origin main

This will automatically push your commit to the remote repository, it may ask your password / passphrase for authentication.



Your Initial Pull Request(PR)

  • Push your changes to the github repository.
  • Go To Pull requests tab on github
  • Click on New Pull Request button.
  • Make sure that head repository is your repository Pull Request Head
  • Make sure it is showing green tick mark
  • Press on Create Pull Request Button Create PR
  • Add necessary title and description
  • Hit Create Pull Request Button

PR 2 - Document your pygame project

Create basic level documentation for your pygame created in username.py and make another pull request using the above given steps.


PR 3 - Customize your Portfolio

  • Change directory to portfolio using cd portfolio

  • Create a copy of the Template folder inside the component folder and rename it as <your_github_username>

  • Inside the pages folder, create a copy of the index.js file and rename it as <your_github_username>.js

  • Rename your image as <your_github_username> and add to the public folder

  • Open /components/<your_github_username>/Navbar/Navbar.js

  • Goto line no:38, replace the image with src=/<your_image_file_name>

  • Goto pages/<your_github_username>.js, replace the Template folder name with <your_github_username>

    import EntryComponent from "../components/<your_github_username>/EntryComponent";
    
  • Goto component/<your_github_username>/EntryComponent.js

  • Replace image file name with your <your_image_file_name>

    import ProfileImg from '../../public/<your_image_file_name>'
    
  • From line 34, Customize the Hero section

  • After the changes are done, make another pull request using the above given steps.


PR 4 - Add pygame project to your project list

  • Go to component/<your_github_username>/EntryComponent.js, Edit your project with your pygame project details

                    {/* Project 1 */}
                  <Grid sm={12} md={5} className="flex justify-center">
                      <Card css={{ width: "330px" }}>
                      <Card.Header>
                          <Text b> <Project_name> </Text>
                      </Card.Header>
                      <Card.Divider />
                      <Card.Body css={{ py: "$10" }}>
                          <Text>
                             <Project description in one sentence> 
                          </Text>
                      </Card.Body>
                      <Card.Divider />
                      <Card.Footer>
                          <Row justify="flex-end">
                              <Link href="<Project_repo_link>">
                                  <Button size="sm" light color="primary">Link</Button>
                              </Link>
                          </Row>
                      </Card.Footer>
                      </Card>
                  </Grid>
  • Going to the url localhost:3000/<github-username> will now give you the sample portfolio.
  • And you're all done.

hacktober-fiesta22's People

Contributors

unniznd avatar shiyasmohd avatar sai-na avatar darshana-das-k avatar annmol-2002 avatar mimithamg avatar rithas2003 avatar sushminis avatar divya-256 avatar urmila-13 avatar jithinpkumar avatar jisnas avatar ayman1972 avatar aditiajithkumar avatar prometheus2k avatar zain-10 avatar ezbonpj avatar devadathan-ks avatar muhammed770 avatar jp-gect avatar akashkmathew avatar sammyrin avatar ankithpvinod avatar taslimmuhammed avatar shiyasmohd2 avatar 21b828 avatar anjpr avatar anaghajn21 avatar aadeshps avatar rrsshan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.