Difference between revisions of "User:Saul/Realtime app"
From Organic Design wiki
(Created page and added a little bit about it.) |
(Added Setup section) |
||
Line 1: | Line 1: | ||
This is the documentation for the stack I use for creating a real-time application. The stack consists of node.js and feathers.js for the server, the client uses: Vue, vue-router, vuex and setup using the vue webpack. | This is the documentation for the stack I use for creating a real-time application. The stack consists of node.js and feathers.js for the server, the client uses: Vue, vue-router, vuex and setup using the vue webpack. | ||
+ | |||
+ | == Setup == | ||
+ | <source lang="bash"> | ||
+ | sudo npm install -g vue @feathersjs/cli # install dependencies globally | ||
+ | sudo vue init webpack-simple APPNAME # create a new project using the "webpack-simple" template | ||
+ | mkdir APPNAME/server | ||
+ | cd APPNAME/server | ||
+ | feathers generate app # generate the feathers app | ||
+ | mv config ../config && mv .editorconfig ../.editorconfig && mv ../index.html public/index.html # move then files to the proper dirs | ||
+ | rm package.json LICENSE .gitignore .npmignore README.md .eslintrc.json package-lock.json -R test node_modules # delete the unnecessary files | ||
+ | </source> | ||
+ | See Also: | ||
+ | *[[User:Saul/linode#Setting_Up_Node.js]] |
Revision as of 01:03, 19 March 2018
This is the documentation for the stack I use for creating a real-time application. The stack consists of node.js and feathers.js for the server, the client uses: Vue, vue-router, vuex and setup using the vue webpack.
Setup
sudo npm install -g vue @feathersjs/cli # install dependencies globally
sudo vue init webpack-simple APPNAME # create a new project using the "webpack-simple" template
mkdir APPNAME/server
cd APPNAME/server
feathers generate app # generate the feathers app
mv config ../config && mv .editorconfig ../.editorconfig && mv ../index.html public/index.html # move then files to the proper dirs
rm package.json LICENSE .gitignore .npmignore README.md .eslintrc.json package-lock.json -R test node_modules # delete the unnecessary files
See Also: