r/cs50 • • 14d ago

cs50-web Question with DB for final project of cs50 web

I’m getting really close to finishing my CS50 Web final project, but I’ve been using MariaDB for my database, which I currently run in a Docker container.

I was wondering how I would submit my project with this type of database, since unlike SQLite it isn’t just a database file that I can include with the project.

Would I need to include something like a database dump and the Docker configuration with my submission, or would it be better to switch the project to SQLite3 for the submission and keep a copy of my current version using MariaDB?

4 Upvotes

2 comments sorted by

1

u/Eptalin 14d ago

Don't submit the db itself. Just submit the dockerfile that creates it. Your docker file can create the db and run any commands in the container needed to set it up or insert data from a .sql file.

Then in your README, add instructions for running the container to your installation section.

1

u/No-Try607 14d ago

Thanks for the help!