Right now the easiest way to make a folder is to use the plus button in the left side file menu in a project to bring up the new file prompt. If a file is added into a directory that does not yet exist, Koji will create that directory.
This is a list of where every file that is important to Koji lives and a description of what those files do. This is the recommended structure for Koji projects, deviations from this file organization are fine, but they should have a good reason.
The only truly required files for Koji to work are in the first two sections, README.md
, develop.json
, and deploy.json
.
After those files this document just describes best practices and what to expect in the Scaffolds and Templates that currently exist in Koji.
This file is in your root directory and renders a markdown file for the Overview tab in the Project section on the left hand side.
- Find some source files to paste in. In this tutorial I'm going to use The Coding Train's P5 flappy bird clone: https://github.com/CodingTrain/website/tree/master/CodingChallenges/CC_041_ClappyBird/P5
- Go to gokoji.com and make an account if you don't already have one and go to templates and create a project from the Koji P5 Scaffold Template.
- We now have a base Koji project, let's start copying over our repo. The first place that we're gonna do that is in index.html we need a couple p5 libraries.
frontend/common/index.html
in your<head>
tag put the following:
<script language="javascript" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.3/p5.min.js"></script>
<script language="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.3/addons/p5.dom.min.js"></script>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
</style> | |
</head> | |
<body> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
NXT address converter, | |
Ported from original javascript (nxtchg) | |
To C by Jones | |
*/ | |
#include <stdio.h> | |
#include <math.h> | |
#include <stdlib.h> | |
#include <string.h> |
NewerOlder