I'm new to Docker and I'm wondering if it's feasible to set up a project where my frontend is built with TypeScript and my backend uses either MySQL or MSSQL with Express. I want to host both the frontend and backend on GitHub so that users can easily clone the repository. Ideally, I'd like them to be able to set up the database server with their own configurations and compile everything smoothly without much hassle. My aim is to create a game library app, and I'm interested in whether this kind of setup is possible for users who want to run their own servers.
4 Answers
Yes, it's definitely possible to set up your project this way! However, getting everything in place might take some time, especially since it sounds like you're just starting out. Focus on building your application and getting it running locally first. That way, you'll gradually become more familiar with Docker and all the steps needed to get your project running smoothly on users' machines.
Absolutely, this is what containers are designed for! They facilitate deployment and configuration of your applications, making it easier for users to get everything up and running with minimal issues.
This is actually a common setup for open source projects on GitHub. You'd typically have your source code, an example .env file, Dockerfiles, and a docker-compose file. This setup allows experienced developers to understand how to run the project by just looking at the files. It's rare to find a web server project that doesn't use this method nowadays.
You should definitely look into using a mono repo for your frontend and backend, as it simplifies the structure of your project. Docker Compose is a great tool here, as it helps document and build your environment in an easy-to-manage way.

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically