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

add a populate-db command #7

Open
rochacbruno opened this issue Sep 16, 2021 · 4 comments
Open

add a populate-db command #7

rochacbruno opened this issue Sep 16, 2021 · 4 comments
Assignees

Comments

@rochacbruno
Copy link
Owner

populate-db will create random users and contents

@sarath-ps
Copy link
Contributor

use faker ?

@rochacbruno
Copy link
Owner Author

@sarath-ps yes looks like Faker is the best option.

But that could also be a fixed collection of data, a fixtures.json containing users and contents just to serve as example.

@sarath-ps
Copy link
Contributor

sarath-ps commented Sep 23, 2021

@rochacbruno
may be https://jsonplaceholder.typicode.com/users can be used to create normal users, along with an 'admin' user.

https://jsonplaceholder.typicode.com/posts?userId=1 could be used to generate content.

We won't be having a dependency on faker,

@rochacbruno
Copy link
Owner Author

I like it! :)

sarath-ps pushed a commit to sarath-ps/fastapi-project-template that referenced this issue Sep 23, 2021
sarath-ps pushed a commit to sarath-ps/fastapi-project-template that referenced this issue Sep 24, 2021
sarath-ps pushed a commit to sarath-ps/fastapi-project-template that referenced this issue Sep 24, 2021
fixes rochacbruno#5
enables rochacbruno#7
disabled rename workflow for this repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants