# Jsonresume Short Theme ## Getting started To get started with theme development, this is what you'll need: - [node.js](http://howtonode.org/how-to-install-nodejs) - yarn If you're on Arch Linux, you can simply run: ``` sudo pacman -S yarn ``` ### Install the command line We're going to use the official [resume-cli](https://github.com/jsonresume/resume-cli) to run our development server. Go ahead and install it: ``` sudo npm install -g resume-cli ``` ### Download theme Lets go ahead and download a [copy of the repository](https://github.com/jsonresume/jsonresume-theme-boilerplate/archive/master.zip). ### Install npm packages We need to install the dependencies. `cd` into the theme folder we just downloaded and run: ```bash yarn global add $PWD ``` This will read the local `package.json` and install the packages listed under `dependencies`. ### Serve theme While inside the theme folder, simply run: ``` resume serve ``` You should now see this message: ``` Preview: http://localhost:4000 Press ctrl-c to stop ``` Congratulations, you've made it! __The theme development can now begin.__ ## Development ### Overview Now that you have your boilerplate theme installed, go through a quick overview of each of the files needed for your JSONResume theme: * `package.json`: Your package.json is required by all npm packages. Everytime you want to release a new update of your theme, you'll need to update it's version number. * `index.js`: This is the file that will return the needed HTML to the theme server. You can use it to process some things with your theme first, but we'll talk about that a bit later. * `resume.template`: This is your actual template. This file is sent to the `index.js` for it to sent to the theme server. * `style.css`: This is where all the CSS of your project goes. Since the `index.js` only returns HTML, the contents of this file are put between `