Skip to content

tavriaforever/sails-bem-project-stub

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sails-bem-project-stub

a stub Sails application with BEM template render system.

How to deploy to ubuntu server

#!/bin/sh

sudo apt-get update && sudo apt-get upgrade

sudo locale-gen ru_RU.UTF-8
sudo dpkg-reconfigure locales
curl -sL https://deb.nodesource.com/setup | sudo bash -

sudo apt-get install nodejs
sudo apt-get install build-essential
sudo apt-get install imagemagick
sudo apt-get install git
sudo apt-get install nginx
sudo apt-get install mongodb

sudo mkdir /var/www && cd /var/www/
sudo git clone https://github.com/alexbaumgertner/sails-bem-project-stub.git sails-bem-project-stub
sudo chown -R www-server:www-server sails-bem-project-stub
cd sails-bem-project-stub

npm i
bower i

node_modules/.bin/enb make -d views --no-cache

npm i -g nodemon
nodemon app.js

Add views

  • Add layout
./node_modules/bem/bin/bem create -b controller -e index -m action -v index -l views/common.blocks -T bemtree

Addons

About

Sails js project stub with BEM template engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.8%
  • CSS 0.2%