Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/easingthemes/cvangular
yo angular
https://github.com/easingthemes/cvangular
Last synced: 21 days ago
JSON representation
yo angular
- Host: GitHub
- URL: https://github.com/easingthemes/cvangular
- Owner: easingthemes
- License: apache-2.0
- Created: 2014-07-26T09:53:39.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-07T22:04:01.000Z (over 10 years ago)
- Last Synced: 2024-10-15T20:07:05.068Z (2 months ago)
- Language: CSS
- Size: 3.16 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
cvangular
=========yo angular
-------------------------------------------
Prepare
___________________________________________--Check dependencies, and update to latest
--Ruby, Sass, Compass, NodeJs, Gitsudo gem install compass
--NODEJS update
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
#set path
export NODE_PATH=$HOME/.node/lib/node_modules/--node modules - globall
sudo npm install -g yo
sudo npm install -g grunt-cli
sudo npm install -g bower
sudo npm install -g karma
sudo npm install -g karma-cli-------------------------------------------
Project 'cvangular'
___________________________________________mkdir cvangular && cd $_
sudo npm install -g generator-angular
yo angular cvangular
***lot of errors for bower and npm, not yo.--add description, name, repo etc. in package.json
--change deprecated modules, grunt-ng-annotatesudo npm install grunt-ng-annotate
* sudo npm install generator-angular //local module for some errors
// Run npm and bower again if you got errors
sudo npm install // sudo if you got permission errors
bower install //no sudo here-------------------------------------------
Testing
___________________________________________grunt serve //ok
grunt test //karma errornpm install grunt-karma --save-dev
npm install karma-phantomjs-launcher --save-dev
npm install karma-jasmine --save-dev
sudo npm install -g phantomjs
sudo npm install phantomjsnpm install --save-dev karma-chrome-launcher karma-firefox-launcher karma-safari-launcher karma-opera-launcher karma-ie-launcher karma-jasmine karma-coffee-preprocessor
#sometimes you need to add empty Gemfile
grunt test //ok
// DEVELOPE ...... FINISH, BUILD
grunt build
//resolve errors
sudo npm install grunt-ngmin --save-devgrunt build
//Now we got dist folder for our app-------------------------------------------
GitHub
___________________________________________git config --global user.name "Your Name"
git config --global user.email "[email protected]"git init
git remote add upstream https://github.com/easingthemes/cvangular.git
git remote -v* git add .
* git commit -m "commit message"
** git commit -a
* git push upstream master
* git pull upstream master#SSH GitHub
#copy locall key content
sudo apt-get install xclip
xclip -sel clip < ~/.ssh/id_rsa.pub
#Add ssh key to GitHub and paste this content
ssh -T [email protected]git remote set-url upstream [email protected]:easingthemes/cvangular.git
-------------------------------------------
Dreamhost
___________________________________________#locally
ssh-keygen -t rsa
ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]#remote
#Create subdomain for app and point it to 'dist' folder
#cvangular-dev.frontenddot.com --> cvangular-dev.frontenddot.com/dist#put all 'gits' in git folder
cd git
mkdir cvangular-dev.git && cd cvangular-dev.git
git init --bare#create hooks file ()
#create file for writing
cat > ~/git/cvangular-dev.git/hooks/post-receive
#paste content:
#!/bin/sh
git --work-tree=/home/drafil/cvangular-dev.frontenddot.com --git-dir=/home/drafil/git/cvangular-dev.git checkout -f
#press control-d to save the file
#'activate hook':
chmod +x ~/git/cvangular-dev.git/hooks/post-receive
exit#locally
git remote add dev ssh://[email protected]/~/git/cvangular-dev.git
git push dev master