Skip to content

GalkaKG/Destinations_Catalogue

Repository files navigation

Destinations Catalogue - my personal Django Web Project

This repository contains the code for my awesome project. Check out the http://destinations-catalogue.eu/ to see it in action!

Project image

Table of Contents

  • Features
  • Installation
  • Technologies Used
  • Demo
  • License
  • More pictures

Features

  • User authentication and registration
  • Browse and search for destinations
  • Add, edit, and delete destinations
  • User-friendly interface with a responsive design

Installation

  1. Clone the repository:
    git clone https://github.com/GalkaKG/Destinations_Catalogue.git
  2. Set up a virtual environment (optional, but recommended)
    pip install virtualenv
    cd Destinations_Catalogue
    python -m virtualenv venv
    - On Windows:
    venv\Scripts\activate
    - On macOS and Linux:
    source venv/bin/activate
  3. Install project dependencies:
    pip install -r requirements.txt
  4. Set up environment variables
  5. Apply database migrations:
    python manage.py makemigrations
    python manage.py migrate
  6. Create a superuser (optional)
    python manage.py createsuperuser
  7. Run the development server:
    python manage.py runserver

Important: Before running the project, you need to set up the database with initial data. To do this, upload the file data-db.sql to the Docker PostgreSQL container under "Files" and then execute the following command in the Docker terminal:

psql -h localhost -p 5432 -U postgres-user -d destinations_catalogue_db -f data-db.sql

You may need to run this command two or three times until there is data in the table "explore_attraction".

Technologies Used

  • Django
  • HTML, CSS, JavaScript
  • PostgreSQL
  • Google Maps API
  • SMTP server for sending password reset emails

Demo

License

  • MIT License

More pictures: