Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[P0] Database Utilities #7

Open
SirajChokshi opened this issue Mar 22, 2021 · 0 comments · May be fixed by #9
Open

[P0] Database Utilities #7

SirajChokshi opened this issue Mar 22, 2021 · 0 comments · May be fixed by #9
Assignees
Labels
utilities Development Tools

Comments

@SirajChokshi
Copy link
Member

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.

@SirajChokshi SirajChokshi added the utilities Development Tools label Mar 22, 2021
@jonathanshi568 jonathanshi568 self-assigned this Mar 22, 2021
@SirajChokshi SirajChokshi linked a pull request Mar 29, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
utilities Development Tools
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants