Skip to content

IAD-ZHDK/Creative-Coding-Portfolio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👨‍💻 Creative Coding Portfolio 👩‍💻

Please refer to the following instructions in order to set up your portfolio page for the Creative Coding course.

Github Pages

  • Download Github Desktop
  • Follow the instructions to create your Github Pages website
  • Download this respository by clicking on Code --> Download ZIP
  • Move the files inside of this repository into your Github Pages respository named xyz.github.io, where xyz is your username
  • Commit and push the changes to your Github Pages repository using Github Desktop
  • Go to your Github Pages website and check if everything is working correctly

Repository Structure

│   ├── index.html
│   ├── student.json  
│   ├── css
│   │   ├── style.css
│   │   ├── utilities.css
│   ├── favicon
│   │   ├── favicon.ico
│   ├── projects
│   │   ├── 01MainAssignments
│   │   │   ├── project1 
│   │   │       ├── ....  
│   │   │   ├── project2 
│   │   │       ├── ....  
│   ├── script
│   │   ├── script.js
├── README.md
└── .gitignore

Depending on the number of projects you have, in each of the folder you have to create a project subfolder. The subfolder should be named project1, project2, etc. Inside of each project subfolder, you should have the following files: IMPORTANT! The files have to be named exactly as below:

│   ├── project1
│   │   ├── index.html
│   │   ├── sketch.js
│   │   ├── thumbnail.jpeg (.png or .jpg extension are also fine)

Other files such as style.css are optional.

JSON file

In student.json you have to add your personal information.

"name": "Max Muster" *your name *
"thumbnailExtension": "jpeg" *the extension of ALL your thumbnails*
    "projects": [ 
        {
        "folder": "01MainAssignments", 
        "projectNumber": "2" *change the number if you want to show more examples
        },
    ]      

For example, if you created three subfolders like this, then you have to put the number 3 in the projectNumber field.

```bash
│   ├── 01main
│   │   ├── project1
│   │   ├── project2
```

✨ p5.js Project Page ✨

  • Download Visual Studio Code
  • In order to create a project page, go to extensions tab in Visual Studio Code (in the panel on the left side) and search for p5 Project Creator.
  • Install the extension.
  • Open projectXYZ folder, where XYZ is any number e.x 1
  • Inside of projectXYZ create a new p5.js project by pressing cmd ++p (Mac) or ctrl+shift+p (Windows). In the pop-up window type p5. Select Create P5 Project.
  • Give your project any name. This name will appear as the title when you open it in a new tab.

Now you have a folder consiting of index.html and sketch.js files. Do not change anything in index.html except if you want to add external libraries or other DOM elements. Copy your code from openprocessing inside of sketch.js. IMPORTANT! index.html does not have p5.sound library imported.

Repeat this process for every project in each coding category.

Adding images

Please make sure that you add a screenshot of your sketch and name it thumbnail. You can set the extension of your images student.json.