Skip to content

Django Blog app containerized with Docker and deployed on Google Cloud Run. Demonstrates cloud deployment of a Python web app with static files and SQLite (for demo purposes).

Notifications You must be signed in to change notification settings

j-harishankar/Blog-Bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Blog

A simple blog application built with Django. Live Demo: https://django-blog-app-743225501073.asia-south1.run.app


Features

  • User authentication (register, login, logout)
  • Create, edit, and delete blog posts
  • Comment on posts
  • Responsive UI using HTML templates
  • Admin panel for managing posts and users

Deployment

This application is dockerized and deployed on Google Cloud Run for easy, scalable hosting.

  • The app runs inside a Docker container using Gunicorn as the production server.
  • Static files are collected and served properly inside the container.
  • Deployment is automated with Google Cloud Build and Cloud Run for seamless updates.

Setup Instructions (Local Development)

  1. Clone the repository:

    git clone https://github.com/j-harishankar/django-blog.git
    cd django-blog
  2. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows use: venv\Scripts\activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Apply migrations:

    python manage.py migrate
  5. Create a superuser (admin access):

    python manage.py createsuperuser
  6. Run the development server:

    python manage.py runserver
  7. Visit the app: Open your browser and go to http://127.0.0.1:8000/


Contributing

  1. Fork the repository.
  2. Create your feature branch: git checkout -b feature/YourFeature
  3. Commit your changes.
  4. Push to the branch: git push origin feature/YourFeature
  5. Open a pull request.

This way, users understand your app is dockerized and deployed live, but they also have instructions to run it locally.

Want me to help you draft a short Docker usage section too?

About

Django Blog app containerized with Docker and deployed on Google Cloud Run. Demonstrates cloud deployment of a Python web app with static files and SQLite (for demo purposes).

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors