Skip to content

Test vpn web application for Sheep.fish company

Notifications You must be signed in to change notification settings

rostok2112/Free-vpn

Repository files navigation

TEST VPN WEB APP FOR SHEEPFISH COMPANY

Tools and installation

Install Docker (for linux):

sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
sudo apt install docker-ce
sudo systemctl status docker
sudo usermod -aG docker ${USER}
su - ${USER}

Or install Docker Desktop: Installation instruction

Copy and paste values of .env.example file to .env file and edit it for your purposes:

cat .env.example > .env

Run

Start application:

docker compose up -d

Open in browser: Site

Or write in adress line localhost:<port>/ where is a value of PORT in .env

For creating super user (Account with unlimited rights on admin panel):

docker exec -it free_vpn python manage.py  createsuperuser

Migrations

After any changes in models create and apply migrations:

docker exec free_vpn  python manage.py makemigrations
docker exec free_vpn  python manage.py migrate

Optionally(for development purposes)

Install python:

sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.9
sudo apt install python-is-python3
sudo apt install python3-pip
python -m pip install --upgrade pip

Install pipenv:

pip install --user pipenv

Install chrome:

sudo apt install wget unzip gnupg
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list
sduo apt update
sudo apt install google-chrome-stable

Or install from here: Download chrome

Sync dependencies:

pipenv sync

Run important inventory :

docker compose -f inventory-compose.yml up -d

Sync migrations:

pipenv run python manage.py migrate

Collect static filest to static/ directory:

pipenv run python manage.py  collectstatic

Create super user (Account with unlimited rights on admin panel):

pipenv run python manage.py  createsuperuser

Run app for development purposes:

pipenv run python manage.py runserver 8005

After any changes in models create and apply migrations:

pipenv run python manage.py makemigrations
pipenv run python manage.py migrate

Additional commands

Delete all containers and flash all trash:

docker stop $(docker ps -aq) && docker rm $(docker ps -aq) && docker container prune -f

Delete all images:

docker image rm $(docker image ls -q) && docker image prune -af

Testing

Recomended sites for testing proxy:

About

Test vpn web application for Sheep.fish company

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published