GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ArttuKnowit/CodeBlog

BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
data
data
 
 
robot_tests_browser_example
robot_tests_browser_example
 
 
robot_tests_selenium_example
robot_tests_selenium_example
 
 
static/css
static/css
 
 
templates
templates
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
app.py
app.py
 
 
docker-compose.yml
docker-compose.yml
 
 
hello.py
hello.py
 
 
init_db.py
init_db.py
 
 
new_features.md
new_features.md
 
 
requirements.txt
requirements.txt
 
 
schema.sql
schema.sql
 
 

Repository files navigation

Code Blog

This is a simple Flask blog application with CRUD functionality for posts, and simple user authentication. This application is made for the purpose of creating test automation and is not intended for production use. This is a fork of the original FlaskBlog project that has been developed for educational purposes.

Running Locally

Prerequisites

  • Python 3.x
  • pip

Setup

  1. Clone the repository:

    git clone <repo-url>
    cd CodeBlog
  2. (Optional) Create and activate a virtual environment:

    python3 -m venv venv
    source venv/bin/activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Initialize the database:

    python init_db.py
  5. Run the application:

    flask run

The app will be available at http://127.0.0.1:5000/

Running with Docker

Prerequisites

  • Docker

Build and Run

  1. Build the Docker image:

    docker build -t codeblog .
  2. Run the Docker container:

    docker run -p 5000:5000 codeblog

The app will be available at http://127.0.0.1:5000/


Run tests in docker

Create docker network:

docker network create codeblog_network

Build both containers (tests and the application)

docker build -t codeblog .
docker build -t codeblog_tests -f robot_tests/Dockerfile

Run both containers in the same network.

docker run -p 5000:5000 --network codeblog_network --name codeblog_app codeblog
...
docker run --network codeblog_network codeblog_tests

Run tests with docker compose

Project Structure

  • app.py: Main Flask application
  • init_db.py: Script to initialize the database
  • schema.sql: SQL schema for the database
  • templates/: HTML templates
  • static/: Static files (CSS)
  • database.db: SQLite database file

License

MIT

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.