Skip to content

Car Blog is a web application for car enthusiasts, with details on the latest top performance cars.

License

Notifications You must be signed in to change notification settings

Anabella1109/Car-Blog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Car Blog is a web application for car enthusiasts, with details on the latest top performance cars.

May 27th, 2018

Description

Car-Blog is a web application blog meant for car enthusiasts who seek the latest news on super cars. Users can subscribe to the blog to get the latest updates on articles.

The blog supports comments from readers and blog writers can determine whether to delete the comments or not. Users can also delete blog posts at their discretion.

After the writer has posted a new blog post, subscribers will receive an email notification with a link to the blog post.

Specifications

Get the specs here

Set-up and Installation

Prerequiites

- Python 3.6
- Ubuntu software

Clone the Repo

Run the following command on the terminal: git clone https://github.com/DevWaweru/Car-Blog.git && cd Car-Blog

Install Postgres

Create a Virtual Environment

Run the following commands in the same terminal:

sudo apt-get install python3.6-venv
python3.6 -m venv virtual
source virtual/bin/activate

Install dependancies

Install dependancies that will create an environment for the app to run pip3 install -r requirements

Prepare environment variables

export DATABASE_URL='postgresql+psycopg2://<your-username>:<your-password>@localhost/carblog'
export SECRET_KEY='Your secret key'
export DATABASE_URL_TEST='postgresql+psycopg2://<your-username>:<your-password>@localhost/carblog_test'
export MAIL_SERVER='smtp.googlemail.com'
export MAIL_PORT=587
export MAIL_USE_TLS=1
export MAIL_USERNAME=<your-email>
export MAIL_PASSWORD=<your-password> 

Run Database Migrations

python manage.py db init
python manage.py db migrate -m "initial migration"
python manage.py db upgrade

Running the app in development

In the same terminal type: python3 manage.py server

Open the browser on http://localhost:5000/

Known bugs

Sending batch emails bug If others are found, drop me a message

Technologies used

- Python 3.6
- HTML
- Bootstrap 4
- JavaScript
- Heroku
- Postgresql

Support and contact details

Contact me on developer.waweru@gmail.com for any comments, reviews or advice.

License

Copyright (c) Richard Waweru

About

Car Blog is a web application for car enthusiasts, with details on the latest top performance cars.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 47.7%
  • HTML 35.5%
  • CSS 13.1%
  • JavaScript 2.9%
  • Mako 0.8%