Skip to content

A base project structure for Sails.js (backend MVC), Bower.js (client package manager) and Vue.js (Client side MVVM)

License

Notifications You must be signed in to change notification settings

denismars/sails-bower-vue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Sails.js - Bower - Vue.js Project Structure

a Sails application configured to run bower.js and vue.js on the front end.

Note: You need to edit the bower.json file when ever you want to add more front end libraries and also edit the exportsOverride section to incorporate your newly added front end libraries.

To run the application..

sudo npm install

bower install

sails lift

While in development - watch changes to your Vue components:

sudo watchify -t vueify -e src/main.js -o assets/js/builds/build.js

This watchify command will look for changes to your Vue web application/component files under the src directory. Build your client web application (html, css, js - using vue) within the src directory if you are planning to build a real SPA (single page application) - otherwise feel free to add views in the Sails view area as per Sails docs.

Enjoy!

ps. (to avoid issues I pref some commands with sudo, if you have your paths correctly installed without needing sudo then please ignore.)

About

A base project structure for Sails.js (backend MVC), Bower.js (client package manager) and Vue.js (Client side MVVM)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published