jsonresume / theme-manager

Theme server for JSON Resume
MIT License
166 stars 31 forks source link

Testing Themes Locally #7

Closed JaredCubilla closed 10 years ago

JaredCubilla commented 10 years ago

I've been attempting to create a theme for jsonresume, and have even been able to publish it to the NPM registry. It's simply a copy of the default "modern" theme, which I copied from your repository.

I've been able to get it to work on your themes registry, but I was wondering how I would be able to test this locally.

At the bottom of the README, it describes a resume-schema, which I have now saved to the package.json file, but I don't know what to do with it. I tried to run node index.js, but it didn't return anything.

I apologize for my lack of knowledge on this topic... thanks in advance.

thomasdavis commented 10 years ago

Hey @JaredCubilla, we are building out an official tool for this.

But in the mean time, copy this script into your directory https://github.com/erming/jsonresume-theme-flat/blob/master/serve.js

It starts up a webserver, that executes your theme each time you load the url http://localhost:8080

JaredCubilla commented 10 years ago

Thank you very much. Loving JSONResume! :+1:

rolandnsharp commented 10 years ago

Hi @JaredCubilla, I've just updated the serve command of the resume-cli for theme development.

I just tried it out on your very classy theme and it's working well on my end.

Please see my comment here for info on how to use this new feature: https://github.com/jsonresume/theme-manager/issues/8

Basically: just type: resume serve in the directory where your theme is located.

JaredCubilla commented 10 years ago

Thank you @rolandnsharp! The process went perfectly and I can test themes with much more ease. Thank you very much.

JaredCubilla commented 10 years ago

Also, if you're interested, I would love to attempt to make a Yeoman generator for JSONResume Theme Development... it would make things a lot easier for development of themes, and possibly attract more people to help out with JSONResume as a whole! Would you be interested in that?