Skip to content

A simple POC for Blog application, build with Django 2.

License

Notifications You must be signed in to change notification settings

mkdika/pyniblog

Repository files navigation

PyniBlog

License: Apache-2.0 Build Status codecov codebeat badge Requirements Status

Imgur

A simple POC for Blog application, build with Django 2.

Features

As commons simple blog platform, here are the essential features:

  • Multi user authorization.
  • Post category and tags
  • Post comments
  • Admin-Page: Manage users, categories, tags, posts, comments
  • Front-Page: Home, About, Archive, Categories, Tags, Post
  • Responsive view for both admin & front page.

All admin page operations are base on Django Admin page.

Requirement

Test Framework and Libraries

Or view the requirements.txt file.

Build and Testing

Install Dependencies from requirement.txt

From projecr root, run:

pip install -r requirements.txt

Build

  • Blog Setup

    For blog setup please open and edit the blog/blogsettings.py with your own preference.

  • For first time, run:

    # create all required migration
    py manage.py makemigrations
    
    # execute the migration script
    py manage.py migrate

Testing

# run the Django unit test
py manage.py test

# run the coverage unit test
coverage run --source='.' manage.py test blog

# view terminal coverage report
coverage report

# view html coverage report
coverage html

# erase/remove gathered data
coverage erase

Local Deployment

To run as local server:

py manage.py runserver

Main Page

Main page (front-page) can be access from http://localhost:8000

Admin Page

Online Demo

Coming soon..

Related Documents

Copyright and License

Copyright 2018 Maikel Chandika (mkdika@gmail.com). Code released under the Apache License, Version 2.0. See LICENSE file.