Skip to content

Latest commit

 

History

History
86 lines (56 loc) · 1.98 KB

README.md

File metadata and controls

86 lines (56 loc) · 1.98 KB

eMOTIONALCities

eMOTIONALCities Project Local Hosting Guide

This guide provides instructions on how to host the project locally, both without Docker (option A) and with Docker (option B). Choose the appropriate section based on your preferred method.

A. Hosting without Docker

Prerequisites

Instructions

  1. Clone the repository: On windows OS run Git Bash On Mac OS & Linux you can use the shell

       git clone https://github.com/emotional-cities/GeoDatabase1
  2. Navigate to the project directory: (you can locate the directory where GitHub is installed)

       cd <project_directory>

    example: cd Users/name/OneDrive/Documents/GitHub/GeoDatabase1/empotics

  3. Install requirements:

pip install -r req.txt

  1. Run the serve:
python manage.py runserver

B. Hosting with Docker

Prerequisites

  • Docker installed on your machine

Instructions

  1. Clone the repository:
git clone <repository_url>
  1. Navigate to the project directory:
cd <project_directory>
  1. Build the Docker image:

       docker build -t emo .
  2. Run the Docker container:

       docker run -p 8000:8000 my_django_app
  3. Access the Django app:

Open a web browser and visit http://localhost:8000 to access the emotional cities app running inside the Docker container.

Open a web browser and visit http://localhost:8000 to access your locally hosted emotional cities app.