@@ -4,14 +4,9 @@ dotenv.load();
44process . env . MONGO_DATABASE = 'mongodb://localhost:27017/connect' ;
55process . env . OUTPUT_LOG = './log.txt' ;
66
7- // create a password
87const crypto = require ( 'crypto' ) ;
98const app = require ( 'express' ) ( ) ;
10-
11- // stub out the schema
129require ( './app/helpers/database' ) ( app ) ;
13-
14- // create an admin user
1510const User = require ( './app/models/user' ) ;
1611const Game = require ( './app/models/game' ) ;
1712const Group = require ( './app/models/group' ) ;
@@ -28,11 +23,11 @@ function makeRandomString(length){
2823
2924async function makeDummyData ( ) {
3025 let admin = await makeAdmin ( ) ;
31- // let game = await makeGame();
26+ let game = await makeGame ( ) ;
3227 let groups = await makeGroups ( ) ;
3328 return Promise . all ( [
3429 admin ,
35- // game,
30+ game ,
3631 groups
3732 ] ) ;
3833}
@@ -64,11 +59,11 @@ async function makeGame(){
6459 console . log ( 'Creating example game with releases...' ) ;
6560 //set your values as desired
6661 let gameParams = {
67- title : 'Empty Game ' ,
68- slug : 'empty-game ' ,
69- repository : 'https://projects.pbs.org/bitbucket/projects/PKK/repos/empty-game/ ' ,
70- location : 'https://springroll-tc.pbskids.org/empty-game ' ,
71- description : 'A placeholder game for testing. '
62+ title : '' ,
63+ slug : '' ,
64+ repository : '' ,
65+ location : '' ,
66+ description : ''
7267 } ;
7368 gameParams . created = gameParams . updated = Date . now ( ) ;
7469 let game = new Game ( gameParams ) ;
0 commit comments