AhmetFurkanDEMIR / OneLinkTR

Don't miss the opportunity to combine multiple links in one link!. With this application developed by the SoftForRange team, keep both your links and your customers together.

Home Page:https://onelinktr.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Screenshot_2022-07-06_14-57-58

Keep It Together! With this application developed by the SoftForRange team, keep both your links and your customers together.

Economize Don't have to allocate a separate ad budget for each app, get it all done at once!

Application Logic Different market links of your application in different operating systems are combined and a single link is created, when the user goes to this link, the operating system is automatically detected and directed to the specific link for that operating system.

You can use OneLinkTR application right now and create a single link!!

OR, you can run this application in your local by following the steps below.

Deploying OneLinkTR with Docker.

index

In order to run the OneLinkTR application on our computer, we need to install Docker, we go to the link for Docker installation. Link

After the Docker installation, you need to install git on your computer so that you can pull the project to your own computer, run the command below to install git.

sudo apt-get install git

Now that we have Git installed, we can pull the project to our local.

git clone https://github.com/AhmetFurkanDEMIR/OneLinkTR

After we pull the project to our local, we need to make some changes specific to your computer.

First of all, create a yadex mail so that you can verify mail in the application, then go to the Python script file called PyScripts/tools.py and enter your yandex account information in the "MyEmail" and "MyEmailPass" variables, so you can send verification links via smtp with your yandex account.

global MyEmail
global MyEmailPass
MyEmail = "your_yandex_mail"
MyEmailPass = "your_password"

After completing the mail operations, we need to make some changes and configurations to direct the project from docker to our public ip address.

Run the following Python code on your Ubuntu computer and find out your computer's public ip address.

import socket
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(("8.8.8.8", 80))
print(s.getsockname()[0])
s.close()

In this example my ip address is "192.168.1.33", it should give you an ip address like this, now you need to paste the ip address into the "myIp" variable in the Python script called PyScripts/tools.py.

ServerPort = 5000
global myUrl
myIp = "192.168.1.33"
myUrl = "http://{}:{}/".format(str(myIp), str(ServerPort))

We have created a url with our public ip, and thanks to this url, we will be able to verify user accounts.

After these operations, we will create a docker network with this public address, edit and run the following command according to your own ip address to create the network.

docker network create -o "com.docker.network.bridge.host_binding_ipv4"="192.168.1.33" bridge2

Now that we have finished all our configuration processes, we can deploy the images in the docker-compose.yml file and access our application.

We have two images in the docker-compose.yml file.

The first image contains the PostgreSQL database. When we deploy this image, the sql commands in sql/create_tables.sql are run and the necessary tables are created.

In the second image, we have our website that we wrote with Python-Flask, when this image is deployed, the python packages in requirements.txt are loaded and then the application is deployed on the public ip.

Run the following command to deploy these two images and access the application.

# Cleaning up Docker images
docker rm -f $(docker ps -a -q)
docker volume rm $(docker volume ls -q)

# Running all images (While in the project folder)
sudo docker-compose up -d

Now that our images are deployed, you can access the OneLinkTR application via http://YourPublicIp:5000. (my Url: http://192.168.1.33:5000/)

Contributors

About

Don't miss the opportunity to combine multiple links in one link!. With this application developed by the SoftForRange team, keep both your links and your customers together.

https://onelinktr.com/


Languages

Language:HTML 62.4%Language:Python 36.5%Language:CSS 1.0%Language:Dockerfile 0.1%