What’s the Best Way to Build a Website with a Python Backend?

0
9
Asked By CuriousCoder99 On

Hey everyone! Hope you're all doing great. I'm curious about how to create a website using a Python backend. I'm working on a card game engine paired with a reinforcement learning model I trained using PyTorch, which has around 300,000 parameters. My goal is to showcase this project so potential employers can see my work.

Is there an easy route for deploying this? I was wondering if I should dive into front-end development to make the game playable in a browser or if a solid written report would suffice instead. Just a heads-up, my experience in HTML and CSS is basically zero. The game only needs one input field (a number between 0 and 42) and produces one output, so it might not need much complexity.

2 Answers

Answered By DevGenius42 On

Setting up the backend is where you'll spend most of your time. I recommend using Heroku to deploy your app—it's user-friendly, though it might cost you a bit. Just a heads up, creating an actual website won't be too complicated, but it can be a bit of a learning curve since you're new to it. I set up something similar with Flask a couple of years ago, so I can relate to the frustration of starting out in web development!

CuriousCoder99 -

I actually already have the backend done, so I'll definitely check out Heroku. Thanks!

Answered By TechSavvySeeker On

To get started, you'll definitely need to learn some HTML, CSS, and a bit of JavaScript if you're looking to add a front-end to your project. Even just a simple demo with these technologies will look significantly better than just a back-end without any interface. For the backend part, you can go with either Flask or Django. Flask is more lightweight and easier to pick up, which might be a good fit for your situation. Just keep in mind that if you're not doing much beyond a basic form, JavaScript isn't strictly necessary.

CuriousCoder99 -

Thanks for the advice! Looks like I'll have to pick up some extra skills, but that might boost my resume as well. I'll think it through.

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.