Getting Started With Development - Khan/khan-windows GitHub Wiki
Visual Studio 2012
You will need Visual Studio 2012 to develop and build Khan Academy Windows 8 app. There is a free express version available to download. Any of the other development SKUs will work as well.
We haven't migrated to VS 2013 for Windows 8.1 upgrade yet.
Source
Start with cloning the repo from GitHub. Make changes in your local repo and submit a pull request.
Clone URL: https://github.com/Khan/khan-windows-8.git
Khan Academy API dependency
Register an App at Khan Academy to obtain a couple string values: i) consumer key and ii) consumer secret
Copy the file:
./khan-windows-8/KhanAcademy/secrets.json.sample
To:
./khan-windows-8/KhanAcademy/secrets.json
And then fill out the consumer key and consumer secret inside secrets.json
.
If you try to build without a secrets.json
file you will get a build error.
Using TypeScript for JavaScript Development
For developing the app, TypeScript is used for writing JavaScript code. TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.
The project is configured to generate source maps for TypeScript<->JavaScript code and you can debug TypeScript code when in debugger.
The JavaScript files are not committed and are added to gitignore file. You should not commit JS files as these are generated when you compile the project.
We are using TypeScript version 1 RTM.