Skip to content

kelson8/FlaskWeb

Repository files navigation

KelsonCraft Website

This is the code for the kelsoncraft.net website which is running on Python Flask

I have a dark mode toggle for the website, and I'm using bootstrap v5.

Website Link: (https://kelsoncraft.net)

Files:

Setup

To run

  1. Rename the .env.example to .env.
  2. Modify the .env file to have your database info and secret key.
  3. Create a virutal environment for your system using the below link: https://docs.python.org/3/library/venv.html
  4. python -m venv venv
  5. Source the venv:
  • Windows:

  • Cmd: venv\Scripts\activate.bat

  • Powershell: venv\Scripts\Activate.ps1

  • Linux:

  • Bash/zsh: source venv\Scripts\activate

  1. Install the requirements: pip install -r requirements.txt

  2. Run the Flask Project: waitress-serve --port <port> flask_web:app

  1. First rename the .env.example to .env
  2. Modify the .env file to have your database info and secret key
  3. Then change the network and volumes in the docker-compose.yml
  4. To start: docker-compose up -d

About

This website has docker support.

I will be using mariadb for the website also, that won't run in a container.

This is running with the waitress WGSI Server.

About

KelsonCraft Website flask source code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published