- Generate Node.js project template
- Node.js 0.10, 0.12, 4.x
- MongoDB
- Chef
- Vagrant
- Server deployment (fabric)
gem install knife-solo
gem install berkshelf
mkdir <project_name> && cd <project_name>
git clone [email protected]:g-huytran/nodejs-gitlabci-practice.git
cd vagrant/
vagrant up
vagrant ssh
cd ../chef/
sudo knife solo bootstrap [email protected] -P vagrant
npm test
npm run lint
knife solo boostrap root@[server-ip]
or knife solo cook root@[server-ip]
node backend/deployment/sync.js --dest=server
knife solo boostrap root@[server-ip]
or knife solo cook root@[server-ip]
Note: a JSON file of --dest param must be existed on config folder
- chef: contains chef configuration + cookbooks
- backend: contains all backend code
- .gitlab-ci.yml: gitlab configuration
- install.sh: install environment for gitlab runner
- vagrant: vagrant configuration
TODO