8000 GitHub - roomacarthur/travel-blog: Full Stack Django blog, covering advanced features and TDD
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

roomacarthur/travel-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
< D3BA div class="react-directory-filename-cell">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Django Blog - Nomadic Dev.

A Django-based travel blog application for travel and nomadic life experiences. The app is built with django, and styled with Bootstrap and boasts optimize images, and front end moderation. The application is hosted on Railway.app and uses a Neon DB for the database and Cloudinary for image hosting.

Features

  • User authentication and profile management
  • CRUD functionality.
  • Front end moderation for admin users.
  • Post and comment Flagging system.
  • Image optimization using Cloudinary
  • Automated testing with GitHub Actions
  • Responsive design with Bootstrap
  • Hosted on Railway.app

Prerequisites

  • Python 3.x
  • Django
  • PostgreSQL
  • Cloudinary account

Setup

  1. Clone the repository:

    git clone https://github.com/roomacarthur/travel-blog.git
    cd travel-blog
  2. Create a virtual environment and activate it:

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

    pip install -r reqs-dev.txt
  4. Set up environment variables: Create a .env file in the project root and add the following:

    DEBUG=True
    SECRET_KEY=your_secret_key
    DATABASE_URL=your_database_url
    CLOUDINARY_URL=your_cloudinary_url
  5. Apply migrations:

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

    python manage.py runserver

Testing

Unit Tests

Unit tests focus on individual components like models, views, and forms.

python manage.py test

Email Handling

To test email handling, use the following management command:

python manage.py sendtestemail --admin

Continuous Integration

GitHub Actions is used to run the tests automatically on each pull request to ensure code quality and reliability.

Deployment

The application is deployed on Railway.app.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

0