Code Monkey home page Code Monkey logo

blog-1's Introduction

GAE multiuser blog without JS
Simple multiuser blog is built using Google App Engine
Sample here: https://river-wave-150720.appspot.com/blog
Only registered users may add comments and "like" posts.

Installation

Download and Install the GAE SDK for python here: https://cloud.google.com/appengine/docs/standard/python/download Clone the source code to your local directory:

git clone [email protected]:weehaa/blog.git

Run

cd to directory where you have cloned the project and run the app server: dev_appserver.py .

Modules info

This app is based on MVC (model - view - controller) model.

Model modules

are stored at /models folder, basicaly contain a GAE entity DB classes:
user.py - user GAE entity class
blog.py - blog post GAE entity class, a descendor of a user entity
comment.py - comment GAE entity class, a descendor of a blog entity
likes.py - "likes" GAE entity class, a descendor of a blog entity

Controller modules

account_control.py - handles user signup, login and logout
blog_control.py - contains front page and newpost render handlers
post_control.py - contains post page and likes render handler
comment_control.py - contains comment render handlers

Views modules

are the jinja templates:
base.html - headers and top menu
front.html - front page of the blog
newpost.html - form to add new or edit existing post (TODO: rename to formpost.html)
permalink.html - single post page where user can "like" or left comment to the post. The author can edit or delete his post here.
post.html - single post template to render it on any page
comment.html - single new/existing comment template for render it inside comments.html
comments.html - "Comments" title, comment form with Add/Edit/Delete buttons

blog-1's People

Contributors

weehaa 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.