Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/virgil993/python-reverse-proxy

An application that simulates a reverse proxy server wirtten in python
https://github.com/virgil993/python-reverse-proxy

Last synced: 2 days ago
JSON representation

An application that simulates a reverse proxy server wirtten in python

Awesome Lists containing this project

README

        

# Python-Reverse-Proxy
An application that simulates a reverse proxy server written in python

To run the project , you must first have installed Python with the latest version, MySQL Workbench and preferably Visual Studio Code with the Python extension installed. Follow the steps bellow to run the application:

1. First, open a terminal and run pip install pipenv to install a tool that can manage application dependecies in a virtual environment.
2. Download the Python Reverse Proxy folder in your preffered directory.
3. In a terminal go to the Python Reverse Proxy directory and run pipenv install django, this will create a virtual environment where django is installed.
4. To activate this virtual environment , in the terminal in the Python Reverse Proxy directory run pipenv shell.
5. In the terminal you need to also run the command pip install mysqlclient to install mysql.
6. Open Visual Studion Code and open the Python Reverse Proxy folder. Choose the virtual environment you just created as your interpreter.
7. In settings.py in the Python_Reverse_Proxy folder there is a dictionary called DATABASES , change the proprieties in that dictionary so you can connect your database to the project.
8. In a terminal in VS Code run these 2 commands:python manage.py makemigrations and python manage.py migrate
9. Then run the command python manage.py runserver 8080 and your server should be up and running.

My application simulates a reverse proxy server which takes requests from the user and then sends those requests to an API that contains data for testing. After recieving the response from the API , my application modifies that JSON response and sends it back to the user. My project also stores in a database all requests and responses that are sent through the proxy server.