Image Count

This web-site gives the count of images in a URL.

Installation

System Requirements

  • Git
  • Python 3.6.8
  • pip 9.0.1
  • React
  • Django

Setup

  • Install and configure Git
  • git clone https://github.com/ArushiSinghal/ImageCount.git
  • cd ImageCount
  • sudo apt-get update
  • sudo apt-get upgrade
  • sudo apt-get install python3 (sudo apt-get upgrade python3)
  • python3 -m pip install --upgrade pip (Install Pip)
  • sudo apt-get install python3-venv (Virtual Environment)
  • python3 -m venv myvenv
  • source myvenv/bin/activate (Activate Virtual Environment)
  • sudo apt install nodejs
  • sudo npm i -g npx
  • npm config set proxy http://proxy_host:port (For setting proxy, if required)
  • pip3 install -r requirements.txt

Start React Server

  • Open a New Terminal
  • cd frontend
  • npm install
  • npm run start

Start Django Server

  • Open a New Terminal and activate virtual environment (source myvenv/bin/activate)
  • cd imageurl
  • python manage.py migrate
  • python manage.py makemigrations
  • python manage.py runserver

Run frontend Test

  • Open a New Terminal
  • cd frontend
  • npm run test

Run Backend Test

  • Open a New Terminal and activate virtual environment (source myvenv/bin/activate)
  • cd imageurl
  • python manage.py test