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

DB Seeder #53

Open
syahnur197 opened this issue Mar 8, 2022 · 1 comment
Open

DB Seeder #53

syahnur197 opened this issue Mar 8, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@syahnur197
Copy link
Contributor

It's not an enjoyable development experience to keep on scraping the websites especially when you have unreliable internet connection. Suggestion is to have another cmd programme that seeds data to the DB. We can use export an SQL file from existing data and create a new cmd programme that imports the SQL file.

@syahnur197 syahnur197 added the enhancement New feature or request label Mar 8, 2022
@dsychin
Copy link
Member

dsychin commented Mar 8, 2022

@syahnur197 The MySQL docker image has a special directory at /docker-entrypoint-initdb.d where it will execute any scripts and sql in there. So we can keep an sql dump and mount it to that directory in docker-compose.

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

No branches or pull requests

2 participants