Skip to content

Commit

Permalink
Merge in dependency updates and fix to committee model (#101)
Browse files Browse the repository at this point in the history
* Update Some Dependencies (#81)

* Update nodemon

* Update nodemailer & mailgun transport

* Update sqlite

* Update sequelize-cli

* Add Make Keys Directory to README

* Update nyc

* Update bluebird, jsonwebtoken, mocha

* Update mime, supertest, chai, cross-env, moment, morgan

* Make committees 1->* officers rather than 1->1 (#96)

Co-authored-by: Bill Dybas <[email protected]>
  • Loading branch information
gavrielrh and billdybas authored Jan 14, 2020
1 parent c68b574 commit d8856e8
Show file tree
Hide file tree
Showing 4 changed files with 7,922 additions and 6,030 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,12 @@ Only need to do this if you are working on scoreboard-related endpoints.

### Running the app
1. `npm install`
2. `npm run keygen`
3. `npm run bootstrap -- --admin:firstName [YOUR NAME] --admin:lastName [YOUR LAST NAME] --admin:dce [YOUR DCE] --keygen --seed` - Creates and migrates the database. If you specify the admin args, a membership will be created for that
2. `mkdir keys`
3. `npm run keygen`
4. `npm run bootstrap -- --admin:firstName [YOUR NAME] --admin:lastName [YOUR LAST NAME] --admin:dce [YOUR DCE] --keygen --seed` - Creates and migrates the database. If you specify the admin args, a membership will be created for that
user with all permissions. If you specify keygen, all keys will be regenerated.
If you specify seed it will seed the database.
4. `npm start`
5. `npm start`

### Additional Notes
1. `PORT="2222" npm start` - Run the server on a different port.
Expand Down
2 changes: 1 addition & 1 deletion models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Specialty from './specialty';
import Tag from './tag';
import User from './user';

Committee.hasOne(Officer);
Committee.hasMany(Officer);
Committee.hasMany(Event);
Committee.hasMany(Membership);

Expand Down
Loading

0 comments on commit d8856e8

Please sign in to comment.