A social Networking Site
ByteNet is a social networking site built with django and bootstrap.
Project is live at : https://bytenet.pythonanywhere.com/
Things you can do on ByteNet:-
-
Create account
-
Make friends by sending and accepting friend requests
-
Share images, music, youtube videos and much more with your friends
-
Like and Dislike the posts on your feed
-
Tag friends and be part of the conversation
-
Find users on the website
-
See what everyone is up to in your feed
-
Catch on with latest trends,news and memes.
and also, posts, here, are called "bytes" : )
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Feel free to open issues with appropriate tags.
- Create a
virtualenv
for running the app.- Run
python3 -m venv myvenv
insidebytenet
folder. - Run
source myvenv/bin/activate
to start virtual environment. - Run
pip3 install requirements.txt
.
- Run
- Migrate the models.
- Run
python3 manage.py makemigrations
. - Run
python3 manage.py migrate
.
- Run
- Run the server.
- Run
python3 manage.py runserver
And that's it.
- Run
- To run some functions you will need some credentials.
- Create a
python
file calledsecrets.py
inconstants
directory.
- Head over to https://apidocs.imgur.com/ and get the necessary credentials and add them to
constants/secrets.py
. - You will need these 2 credentials:
IMGUR_CLIENT_ID
andIMGUR_CLIENT_SECRET
.
- Head over to https://www.linkpreview.net/ and get the necessary credentials and add them to
constants/secrets.py
. - You will need just one credentials:
LINK_PREVIEW_KEY
.
- For running
god_script.py
you will have to get reddit credentials. - Head over to https://www.reddit.com/dev/api/ and get these credentials
REDDIT_CLIENT_ID, REDDIT_CLIENT_SECRET, REDDIT_USERNAME, REDDIT_PASSWORD, REDDIT_APP_NAME
and store it inconstants/secrets.py
.