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.
-
Installing Git: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
-
Installing Python 3.x on your machine: https://www.python.org/downloads/
on windows OS:
- Run the installer from Windows Explorer
- Check the Add Python 3.8 to Path check box
- Click Customize installation
- All Optional Features should already be checked; click Next
- Check Install for all users, then click Install
-
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
-
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
-
Install requirements:
pip install -r req.txt
- Run the serve:
python manage.py runserver
- Docker installed on your machine
- Clone the repository:
git clone <repository_url>
- Navigate to the project directory:
cd <project_directory>
-
Build the Docker image:
docker build -t emo .
-
Run the Docker container:
docker run -p 8000:8000 my_django_app
-
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.