wasp-lang / wasp

The fastest way to develop full-stack web apps with React & Node.js.
https://wasp-lang.dev
MIT License
13.63k stars 1.18k forks source link

Rename "wasp database seeds" to something like "wasp server scripts"? #1439

Open Martinsos opened 1 year ago

Martinsos commented 1 year ago

While they can be used for database seeding, they can also do quite more! They are really scripts, like in package.json scripts, that can be run on demand in the context of the server. Primarily they should be used during development, but you could also run them in production. For example, they could be a good way to run data migrations.

They are running in NodeJS, have access to Operations, have access to the database, and can import any server file that user defined. So just db seed is too limiting of a name. Maybe we could go with server scripts. Or db scripts. Or just scripts. I am not sure yet, but something in this direction.

Atharva1723 commented 12 months ago

Can I work on this issue?

Martinsos commented 12 months ago

@Atharva1723 this is not quite clear yet, as to what is the best move and how to do it, so I would recommend this for initial issue.

Atharva1723 commented 12 months ago

@Martinsos Maybe we can go with server scripts as It doesn't limit their benefit to a single operation rather, it covers their use for a variety of server-related procedures, such as database seeding and data migrations.

Martinsos commented 12 months ago

@Atharva1723 yup I think that makes sense: server scripts!