Code Monkey home page Code Monkey logo

masterblog's Introduction

masterblog

A simple blog program created in Python. It takes blog data from a file and displays the data on a website using HTML templates.

Requirements

  • Python version 3.6+
  • Python's Flask module
  • Python's JSON module

Features

  • Display blog posts on an index page
  • Add a new blog post
  • Update or delete an existing blog post
  • HTML template files and a static CSS file for the dynamic generation of pages
  • Storage of blog data as a list of dictionaries in a JSON file

How to Use

NOTE: Current version of this program should only be used in a developer server environment. A proper production version will be added at a later date.

Open app.py in an editor and edit the file name on line 5 in the variable called post_data. Note that this is only if you want to use your own JSON file, otherwise leave it as is. The current state of the program does not accomodate for a missing file, so it will throw an error otherwise.

Load app.py to start the server running, then navigate to the to localhost:5000 or whatever IP address the server told you to use when it started up. You should see an index page with a list of test blog posts.

masterblog's People

Contributors

arnrockwell avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.