add resource generator
fix .gitignore