Code Monkey home page Code Monkey logo

blogging-website's Introduction

blogging-website

AWESOME BLOG

Published on

  • Date 02/11/2020

Description

Awesome blog is a personal blogging website where you can create and share your opinions and other users can read and comment on them. The blog also has random quotes that inspire the users.

Author

  • Dennis Mutai

Features

As a user of the web application you will be able to:

  • See all submitted blogs
  • See random quotes
  • Create an account
  • Log in
  • Post a blog
  • Comment on a blog
  • See comments posted on each individual blog
  • Edit your profile i.e will be able to add a short bio about yourself and a profile picture

Specification

Behaviour Input Output
view blog post sign up for account sign in
view post add post submit
all post view more see comments and add post
add post update delete

Known Bugs

  • No current test for the application

Prerequisites

  • python3.6
  • virtual environment
  • pip

How to access it

You can access it by cloning the Repository

$ Open Terminal (Ctrl Alt T)
$ git clone link
$ cd directory-name(MYBLOG)
$ code .

Running the Application

  • Install virtual environment using $ python3.8 -m venv --without-pip virtual
  • Activate virtual environment using $ source virtual/bin/activate
  • Download pip in our environment using $ curl https://bootstrap.pypa.io/get-pip.py | python
  • Install all the dependencies from the requirements.txt file by running python3.8 pip install -r requirements.txt
  • Create os .environment file in the root of the folder and add the following code: export MAIL_USERNAME= export MAIL_PASSWORD= export SECRET_KEY= Edit the configuration instance in manage.py from development to production
  • To run the application, in your terminal: $ chmod a+x start.sh $ ./start.sh

Create DB

  • Create a psql databases
  • CREATE DATABASE myblog;
  • Create the tables and run the migrations:
  • pip install flask-migrate
  • python3 manage.py db init
  • python3 manage.py db migrate -m "Initial Migration"
  • python3 manage.py db upgrade

Technologies Used

  • Python3.8
  • Flask
  • HTML
  • Bootstrap This application is developed using Python3.6, Flask, HTML and Bootstrap

Support and Team

Dennis K.Mutai Follow me here

LICENSE AND COPYRIGHT

Mit License2020 © Dennis K.Mutai

blogging-website's People

Contributors

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