Trabla: node.js & express.js & bitbucket-git fast setup example on Windows
Preconditions:
1. Already exist bitbucket account - https://bitbucket.org/
2. Git installed - http://git-scm.com/downloads
3. Node.js installed - http://nodejs.org/download/
4. express project generator installed
globally for node.js
- run in cmd "npm install -g express-generator"
Solving:
1. Create new project in bitbucket - git + javascript as language
2. Run windows commands line
3. MKDIR C:\nodejs_projects
4. CD C:\nodejs_projects
5. express --css stylus myproject
6. CD C:\nodejs_projects\myproject
7. npm install
8. git init
9. git add .
10. git commit
- Press "insert" button on keyboard
- type commit message
- Ctrl+C
- :w + press "Enter" button on keyboard
- :q + press "Enter" button on keyboard
11. git remote add origin https://samuraikit@bitbucket.org/samuraikit/myproject.git
replace https://samuraikit@bitbucket.org/samuraikit/myproject.git with yours
12. git push -u origin --all
- type your repository password
Make some changed in files
1. CD C:\nodejs_projects\myproject
2. git add .
3. git commit
- Press "insert" button on keyboard
- type commit message
- Ctrl+C
- :w + press "Enter" button on keyboard
- :q + press "Enter" button on keyboard
4. git push
- type your repository password
No comments:
Post a Comment