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

Create Seeds for Database #2

Open
jrargent opened this issue Jan 4, 2023 · 3 comments
Open

Create Seeds for Database #2

jrargent opened this issue Jan 4, 2023 · 3 comments
Assignees

Comments

@jrargent
Copy link
Collaborator

jrargent commented Jan 4, 2023

A seed file should be made so that we can test to make sure the models are correct and API/CRUD calls can be made.

@jrargent jrargent self-assigned this Jan 4, 2023
@jrargent
Copy link
Collaborator Author

jrargent commented Jan 4, 2023

userSeed.js should follow the json format below, with some possible changes:
{
"username" : "Molly48",
"email" : "[email protected]",
"password" : "kGjRfUNWUIRwfS_",
"projects" : [],
"donations" : []
},
{
"username" : "Katlyn85",
"email" : "[email protected]",
"password" : "otK5YtXpcalD1cm",
"projects" : [],
"donations" : []
},

@jrargent
Copy link
Collaborator Author

jrargent commented Jan 4, 2023

projectSeed.js should follow the json format below, with some possible changes:

{
"projectTitle" : "Help the SPCA",
"organizationName" : "SPCA",
"projectCategory" : "Other",
"projectDescription" : "Help the poor lonely cats and dogs at the local shelter!",
"projectGoal" : "1000",
"createdAt" : "12/1/22",
"donations" : []
},

@jrargent
Copy link
Collaborator Author

jrargent commented Jan 5, 2023

User and Project seeds have been set up.

Donations could probably also use a seed? Or it could wait until enough is built out to let us add donations via GraphQL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant