Points site for the Iota Beta chapter of Kappa Delta Rho
- Download Node and Bower (sorry)
- Clone repository
- Create a Google API project
- Select dropdown in top right, choose "Create New Project"
- Click "Credentials" on the left, and create new OAuthClientID with authorized redirect uri
http://localhost:3000/user/google_callback
, take note of client id and secret. - Enable Google+ API (go to Overviews, and under the social section click "Google+", then enable.
- Run
node setup.js
(and skip to step 11), or continue manually - Copy
config/template_config.js
toconfig/config.js
and replace with your information. - Create a new MySQL database called 'kdrpoints'
npm install
andbower install
- Install gulp and eslint globally--
npm install -g gulp eslint
. - Run
gulp
to start the server
Adding System Adminstrators (you should probably do this)
- Log the desired SysAdmin into the site
mysql -u <user> -p
, enter password at the promptuse kdrpoints;
INSERT INTO SysAdmins(BrotherId) SELECT id FROM Brothers WHERE email='<email>@kdrib.org';
- Ensure they have been added correctly by running
SELECT * FROM SysAdmins
Error | Solution |
---|---|
'gulp' is not recognized as an internal or external command, operable program or batch file. |
StackOverflow's Answer |
EACCES error when installing NPM modules globally without sudo | npm documentation |