Assumes NodeJS has already been installed. If not, install it.
git clone [this repo url]npm installfrom root- import mysql db from root/mysqldb:
mysql -u username -p[root_password] [database_name] < dumpfilename.sql- make sure the database remains named 'fitness'. also make sure user 'bp' w/pw 'guitarstring' is available locally and has all privs npm install -g nodemonnpm install -g gulp- in separate terminal window, cd views/client; run command
gulp - from root dir,
nodemon server.js- nodemon is a node daemon that will restart upon changes to any server files (client files are ignored) - point browser to localhost:8080/
The initial setup was based off of: https://scotch.io/tutorials/easy-node-authentication-setup-and-local
Further expanded to be Sequelize-d by way of: http://stribny.name/blog/2015/09/authentication-quickstart-with-express-passport-and-sequelize
Technologies used, for quick reference:
Server
- NodeJS
- express (routing/middleware - http://expressjs.com/)
- passport (auth - http://passportjs.org/)
- sequelize (MySQL ORM - http://docs.sequelizejs.com/en/latest/)
- nodemon (watcher daemon - http://nodemon.io/)
- MySQL
- EJS (templates - http://www.embeddedjs.com/)
Client
- RequireJS (modular management - this will change over to ES2015/Babel/Webpack soon)
- Backbone
- Chartist