Create a new directory in ./api/utils named ./api/utils/mock-data/
In this folder write scripts to generate each type of data model available (currently/soon to be Reviews, Courses, and Careers) and save them to the database.
e.g. node ./api/utils/mock-data/courses.js <number> puts <number> randomly generated courses into our collection of courses.
You can access command line arguments from node by using the process.argv object.
Create a new directory in
./api/utilsnamed./api/utils/mock-data/In this folder write scripts to generate each type of data model available (currently/soon to be Reviews, Courses, and Careers) and save them to the database.
e.g.
node ./api/utils/mock-data/courses.js <number>puts<number>randomly generated courses into our collection of courses.You can access command line arguments from node by using the
process.argvobject.