Can I Use Docker to Set Up a Game Library App with Frontend and Backend?

0
17
Asked By CuriousCoder42 On

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

Answered By TechieTimon On

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.

Answered By ContainerKing On

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.

Answered By DockerDevDan On

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.

Answered By DevNinja98 On

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.