Development environment for vientos stack, it includes as submodules:
- npm (see: https://github.com/creationix/nvm)
- mongodb or
- docker (see: https://www.docker.com/products/overview#/install_the_platform)
- docker-compose (see: https://www.docker.com/products/docker-compose)
git submodule init && git submodule update
will checkout service and PWA
npm install
will install npm dependencies
cp env.example env
# edit env if needed
source ./env
if you don't have MongoDB, you can use on in docker container
docker-compose up -d
will start container with MongoDB in detached mode
cd vientos-service
npm install
cd .. # back to vientos-sdk
to start dev server for vientos-service
gulp service
- fork https://github.com/vientos/vientos-service on github
- set your fork as remote in vientos-service
cd vientos-service
git fetch origin
git checkout staging
git remote add myfork [email protected]:{MYUSERNAME}/vientos-sdk.git
- for each PR start from origin/staging, make topic branch and push it to your fork
git checkout staging
git pull origin
git checkout -b myfeature
# edit files and git add
git commit -m 'short description'
git push myfork myfeature
cd vientos-app
npm install
bower install
cp config.example.json config.json
# edit env if needed
cd .. # back to vientos-sdk
to start dev server for vientos-app
gulp app
same as for vientos-service
to start both dev servers
gulp stack