Coder Social home page Coder Social logo

blog's Introduction

Blog

A blog application that allows an author to write and publish articles for the public readers.

Build Status Coverage Status Maintainability

Key Application Features

  1. Creating, reading, updating and deleting articles by an admin user.
  2. Viewing and reading articles by public users.

Dependecies

Setup Development

  • Check that python 3 is installed

    python --v
    >> Python 3.6.5
    
  • Install virtualenv

    pip install virtualenv
    
  • Create a virtual environment

    virtualenv env
    source env\bin\activate
    
  • Install python requirements

    pip install -r requirements.txt
    
  • Make a copy of .env.sample file and rename it to .env and replace the variables with your postgres database credentials i.e

        DB_USER=your-database-user
        DB_PASSWORD=your-database-user-password
        DB_NAME=your-database-name
        DB_HOST=your-host
        PORT=5432
        SECRET_KEY=your-secret-key
    

    then run source .env

  • Run the migrations

    python ./manage.py migrate
    
  • Create an admin user

    python ./manage.py createsuperuser
    
  • Run the application

    python ./manage.py runserver
    
  • Login into the application localhost:8000/admin using the credentials created above then create some categories and articles respectively to try out the application

Testing

  • To run tests use the command `
    - coverage run ./manage.py test
    - coverage report
    

Deployment

  • Visit the live application here

License

The project is licensed under MIT License.

blog's People

Contributors

dependabot[bot] avatar solnsubuga 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.