Skip to content

yungsnug/Quizzly

Repository files navigation

Quizzly App

a Sails application

To run locally:
A. Have nodejs installed (only step 1): NodeJS installation
B. Run sudo npm install sails -g
C. After cloning (Git Commands Guide w/ Clone Command), cd into directory Quizzly
D. To setup connections and models from barebone files run the following:
-Run cp config/connections.js.template config/connections.js
-Run cp config/models.js.template config/models.js
-If using MySQL-> install MySQL (only step 1): MySQL Guide for Mac OS X, MySQL Guide for Windows, and MySQL Guide for Linux.
-Note: if using Windows or Linux Guide follow OSX guide for creating database, changing password (note-syntax may be different).
E. Change both files (config/models.js and config/connections.js) - see comments. (In connections make sure to read comments at top)
F. To install/build application do the following:
-Run npm install --save
G. Make sure MySQL server is running if using MySQL (check password and db name in config/connections.js)
H. Run the server with sails lift
I. For MySQL, get MySQLWorkbench and CSV files loaded in database: MySQLWorkbench Guide

Git commands trouble? Start here:Git Commands Guide

To change react files (located in components/*) run once sudo npm install -g browserify then...

You must run this command every time you change a React file: browserify -t [ babelify --presets [ react ] ] components/app.js -o assets/js/bundle.js

If changing component files (running react code above^), have two tabs. One tab with sails lift (only run once), and then one where you run browserify (run any times you want to test changes in component file). This allows you to stay logged in.

Sails Blueprints docs: http://sailsjs.org/documentation/reference/blueprint-api

Sails Blueprints examples: http://localhost:1337/professor/create?firstName=miller&email=miller@usc.edu&lastName=jeffrey&password=test http://localhost:1337/professor/find - this will get all the professors http://localhost:1337/professor/find http://localhost:1337/professor/find http://localhost:1337/professor/find

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •