Tip
Our curriculum in action: https://curriculum.codeyourfuture.io Curriculum platform docs: https://common.codeyourfuture.io
This repo houses both our main curriculum content and our curriculum platform.
Code Your Future is a volunteer-led community of tech professionals, and we teach people to code for free. We consider ourselves to be professionals helping other professionals, so our instructional approach is not hierarchical, and we encourage our volunteers to test out new material early and often. Our main curriculum (the repo you're looking at now) threads a coherent line through all of this activity, so whatever worlds we explore, everyone can come back here to find out what to do next.
Our curriculum content is all open source, and our teaching style is flipped classroom. This means that anyone should be able to follow the curriculum content independently. We offer mentoring and support to help people work through it, but the content does not assume a teacher/mentor will be present for programme delivery.
Our Global Syllabus Team is responsible for the overall direction of the main curriculum. They decide the strategy and accept new tested content into the core. Find out more by learning how to contribute.
Our curriculum and our curriculum platform are tightly integrated with GitHub. We want our learners to know how to use Git and GitHub and how modern development practices work, so we do almost everything right on GitHub. Learners submit their work by creating a pull request to the project repo. They plan their work using GitHub Projects, and they track their progress on the issues. We code review via the GitHub PR interface, and we have some automation and unit testing on quizzes and exercises/problems.
The curriculum content is developed in the Hugo module /common-content. This content is all headless blocks. It doesn't create any pages on your site unless you call it somewhere.
Our self-developed curriculum platform is called Common. It is a white label multi-tenant platform for us and our code school friends to use to manage our curricula. It's built on top of Hugo and Netlify CMS.
The platform, layout, styles and components are all developed in the Hugo module /common-theme.
Multi-language support is provided by Hugo's i18n support.
Common is tightly integrated with GitHub. Really the main content should always be project work in GitHub repositories, and any site generated with Common should be a viewer for that content.
Each org or team configures its own Hugo site that mounts the common theme and content modules, and then makes any customisations they need and deploys it wherever they want. You can use any repo to do this and your site can be as simple as a hugo.toml
and a content/_index.md
. We'd love for you to use Common, too!
- https://curriculum.codeyourfuture.io/
- https://projects.codeyourfuture.io/
- https://workshops.codeyourfuture.io/
- https://programming.codeyourfuture.io/
- https://guides.codeyourfuture.io/
- https://launch.codeyourfuture.io/
- https://piscine.codeyourfuture.io/
- https://sdc.codeyourfuture.io/
- https://curriculum.migracode.org/
To develop a specific site, cd
into the relevant sub-directory and follow the instructions in the README.md
file.
- In the root of this repo, or in your own repo, run:
hugo new site org-{your-org-name}
cd org-{your-org-name}
- Initialise your new site as a hugo module, as only modules can import modules:
hugo mod init github.com/{your-org}/{your-repo}/{your-module}
Then add the common theme and content modules as hugo modules to hugo.toml:
[module]
[[module.imports]]
path = "github.com/CodeYourFuture/curriculum/common-theme"
[[module.imports]]
path = "github.com/CodeYourFuture/curriculum/common-content"
[[module.imports.mounts]]
source = "en"
target = "content"
Look at the org-cyf and org-cyf-tracks examples for more details and options.
To customise the CSS, make a dir assets/custom-theme
and throw any SCSS in there. It will be compiled and added last.
To add site logo/s, make a dir and add svgs to assets/custom-images/site-logo/
. They will be added to the site header.
Add your content to content/
and customise the site config in config.toml
. Please contribute any improvements you make back to the common theme and content modules.
For each module you import, add a replace
directive to your go.mod
file - if you forget to do this, you won't get live updates to your site when shared content changes. CI will remind you if you forget.
Check org-cyf/README.md on how to set up your local environment. Once that is done you can cd
into the site you wish to develop, and run npm run start:dev
to get a live preview.