Skip to content

solnsubuga/blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A blog app built with django

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published