- Download the repo and run build.cmd (or run from source since u need python anyways to run flask)
- Create the HTML files that you want to be on the website (into code)
- Go to the python website and download python 3.X (newest possible, currently 3.11 as of writing this)
- Run the installer file
- Make sure to install pip in the installer options
- Open run prompt by pressing WIN + R
- Type cmd and hit enter
- In cmd type:
pip install flask
- Move compiled generator to code/ from dist/
- run the generator
- Run START SERVER or open terminal (cmd or powershell) in code/ and type:
flask run
- Opening your internet browser
- Going to your own website at:
http://127.0.0.1:5000/
- You are done! (Noone else can go there right now, look up some tutorial or something ill update this readme when i figure how to host on public ip with flask)
- Only need to code html
- Automatically generate python-flask server
- Automatically route all html files based on their name
- Automatically return html code from their corresponding files
- Automatically send html page to client web-browsers
- Is pro gamer
- Logging in generator
- Username auth support (no psw yet)
- Some cofiguratio options i generator
- NEVER have to open app.py!!!
- Automatically port forward / host on public address (thats ur problem)
It just appends code to app.py and then it all works! Ur welcome!!!
- The script gets all files ending with .html, so only files that it can include in website end in .html
- The root page filename is empty by default (just ".html")
- To require login add %auth=True% somewehere in the filename (eg. home%auth=True%.html) or enable force-auth in config
- 404 page and login page cannot require auth (for obvious reasons)
- The login page must be called login.html, to make sure it works copy the one already in he repo and edit that (dont edit the form that might break it)
- The 404 page must be called 404.html
- The server logs all logins and 404 pages (if the user isint logged in it will display as UNKNOWN)
- Make sure to change the app.secret_key if ur actually using this
- Reading css FILES isint supported (i guess) since idk how flask works with css
- U can still include css in ur html code!
- it may not be 100% reliable...
- Havent done large scale testing on it, thats why its on github!
- You can use this to learn how html works i guess!
- Im bad at html so someone else can make a better one
- If you use it without credit i will come to ur house (dont remove the comments)
- I know where you live