Requirements:
For development
-
Node (v5+) (install using nvm)
-
Npm (installed with node)
-
gulp (v4)(npm install -g gulpjs/gulp#4.0)
-
bower (npm install -g bower)
nvm curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash nvm install 5.1.0 npm install -g gulpjs/gulp#4.0 bower
For hosting
- nginx
Steps for starting development server
-
Clone repo from github
-
cd OnePush-Web
-
npm install
-
bower install
-
gulp serve
-
It will start a development server
git clone https://github.com/vibhanshuc/OnePush-Web cd OnePush-Web npm install bower install gulp serve
Steps for deployment using nginx
- Clone repo from github
- cd OnePush-Web
- npm install
- bower install
- gulp build
- It will create a dist/ directory
Which can be hosted as a static site using nginx
Steps for hosting using nginx
-
Install nginx
sudo apt-get install nginx
-
create a /etc/nginx/sites-enabled/onepush file
add following content into the file
server {
listen 80;
listen [::]:80;
server_name 52.66.164.208;
root /home/ubuntu/OnePush-Web/dist;
location / {
try_files $uri $uri.html $uri/ /index.html;
}
}
Replace server_name with your server_ip or domain name Thats it.