TwitPlex is a platform for sharing thoughts, ideas and news. Here you can create and post tweets, share your opinion and be inspired by the content of other users. Keep track of the latest trends, join discussions, make new friends and chat with like-minded people. Join TwitPlex and discover endless opportunities to communicate and share ideas!
-
Clone repository:
git clone https://github.com/Maksim-Volosh/TwitPlex.git
And go to repository folder
-
Create environment an activate:
Create environment:
python -m venv .venv
Activate venv:
.venv\Scripts\activate
-
Install requirements:
pip install -r requirements.txt
-
Create config file:
Create in TwitPlex/ folder
config.py
file. In this file write this:SECRET_KEY = "Enter your secret key"
-
Create your redis server:
-
Go to this website, and create an account or login.
-
After registration you will alredy have a redis db, if this not true, create a new redis db.
-
Go to database and copy: Public endpoint, Default user, Default user password and go to
config.py
. -
Add to your
config.py
this:REDISURL = "Public endpoint"X REDISUSERNAME = "Default user" REDISPASSWORD = "Default user password"
-
-
Create the
superuser
:python manage.py createsuperuser
-
Create google oauth clientid for signin with google for djano application.
-
Run server and go to admin panel:
Run server.
python manage.py runserver
Go to admin panel
http://127.0.0.1:8000/admin
:- Log in as a previously created user.
Go to
Sites
:- And create a new site with domein and name:
http://127.0.0.1:8000/
Go to
Social applications
:-
And create a new Social application:
Provider: Google
Name: google
Client id: "Your cliend id"
Secret key: "Your secret key"
- In input
Sites
you should be choice your site -http://127.0.0.1:8000/
- In input
-
Your form should be view this:
- On this tip we finished the settings
-
Go to terminal and write:
python manage.py runserver
I am Grateful, you has successfully installed the app 😍🥳🎉