Skip to content

phessabi/eshop

Repository files navigation

Online shopping website: http://194.5.192.129:4200/home

Table of Contents

  1. Installation
  2. Production
  3. Usage
  4. Contributing
  5. Credits

Installation

  1. Install Docker

  2. Install docker-compose

    sudo apt install docker-compose
    
  3. Install Angular Build Requirements (node and npm)

  • Backend

    1. Get the backend
      git clone "https://github.com/phessabi/eshop"
      
    2. Go to the backend directory
      cd eshop
      
    3. Build Docker Image:
      • If you can access docker in your country (if you can open this link):

        sudo docker-compose up --build test
        
      • If docker is blocked in your country you have 2 options (second one is easier)

        • Use a vpn or any method to bypass sanctions and do the previous step

        • Download the python docker image as "python3.zip" and run

          sudo docker load -i python3.zip
          sudo -E docker-compose up --build test
          
    4. Run the backend on container (runs on localhost:8000)
      sudo docker-compose up
      
  • Frontend

    1. Get the frontend
      git clone "https://github.com/pedramabdzadeh/agile-front-end"
      
    2. Go to the frontend directory
      cd agile-front-end
      
    3. Change the backend url to your localhost (http://0.0.0.0:8000/) in the file below
      agile-front-end/src/app/features/api-management/services/http/http.service.ts
      
      Alt text
    4. Build the angular image
      npm install -save
      ng build --prod --build-optimizer=false
      
    5. Serve the image(./dist/front-end/*) on Apache server (port :4200)
      sudo mkdir /var/www/agile.com
      sudo cp -r ./dist/front-end/* /var/www/agile.com/
      
    6. In your browser enter the URL: localhost:4200 to check if the app is working

Production

  • The application is currently running here

Usage

Contributing

  • End Users
  • Developers
    • You can send pull requests to this repository. We will check them ASAP.

    more details and guidelines on contributing section

Credits

Releases

No releases published

Packages

No packages published

Languages