Coder Social home page Coder Social logo

proxy-service's Introduction

Proxy Service

Setup with Docker

  1. Download project: $ git clone https://github.com/Eyeless95/proxy-service.git
  2. Install Docker
  3. Copy '.env.default' file from project root directory and name it '.env'. Here you can edit all info, like username and password for database etc.
  4. From project root directory run: $ docker-compose build
  5. After success build run: $ docker-compose up -d
  6. After success go to File->Settings->Project: fba_reimbursement->Project Interpreter, click settings, choose Add Remote, type SSH Credentials: Host: 127.66.6.33 Port: 1022 User name: root Password: root Python interpreter path: /root/venv/bin/python
  7. Copy development.py.default and name it development.py
  8. Go to Tools -> Start SSH session and choose session with your remote venv
  9. In remote venv: $ pip install -r requirements
  10. Go to File->Settings->Project: proxy-service->Project Interpreter, click More... Edit your remote venv and name it ProxyEnv
  11. Make sure that path mapping is: โ†’/usr/src/python-app
  12. Go to File->Settings->Languages & Frameworks->Django: Enable Dhango support, choose project root and settings folder. Make sure that Manage script is manage.py
  13. Apply migrations: $ python manage.py migrate
  14. Create superuser: $ python manage.py createsuperuser
  15. Run server: $ python manage.py runserver

Starting server:

  1. Run server: $ python manage.py runserver
  2. Run celery queues: $ celery -A proxyserver worker -Q proxy_finder -l INFO -n proxy_finder_worker
  3. Run celery scheduler: $ celery -A proxyserver beat

proxy-service's People

Contributors

eyeless95 avatar valentingrinchenko avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.