Gaming is evolving in India day-by-day. There must be a Social platform where Gamers can share their experience and acheivements. Every Gamer was once a noob and other noobs learn from pros. Pro Gamers and even Noobs can share their statistics here.
The project will be hosted online and even on TOR.
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py runserver
Everyone is welcome to contribute just follow the steps.
List all the pre-requisites the system needs to develop this project.
- Basic knowledge on virtual environment
- Minimal knowledge of django
python3 -m venv test
source test/bin/activate
git clone https://github.com/nightwarrior-xxx/social.git
cd social
pip install -r requirements.txt
After installing django (which will be automatically installed by the above command), use this
python -c "from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())"
Now paste this secret key in social/social/settings.py
file.
Remember to use environment variables for setting secret key. And don't push secret key on your branch. Check out how to setup environment variables in Python3 here
Check out this link to setup postgress database here
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
├── LICENSE
├── README.md
├── requirements.txt
├── social
│ ├── accounts
│ │ ├── admin.py
│ │ ├── apps.py
│ │ ├── forms.py
│ │ ├── __init__.py
│ │ ├── migrations
│ │ │ ├── 0001_initial.py
│ │ │ └── __init__.py
│ │ ├── models.py
│ │ ├── templates
│ │ │ ├── auth
│ │ │ │ ├── login.html
│ │ │ │ └── register.html
│ │ │ ├── profile
│ │ │ │ └── user.html
│ │ │ └── social
│ │ │ ├── feed.html
│ │ │ ├── home.html
│ │ │ └── post.html
│ │ ├── tests
│ │ │ ├── __init__.py
│ │ │ ├── test_forms.py
│ │ │ ├── test_models.py
│ │ │ ├── test_urls.py
│ │ │ └── test_views.py
│ │ ├── urls.py
│ │ └── views.py
│ ├── cred.sh
│ ├── manage.py
│ ├── post
│ │ ├── admin.py
│ │ ├── apps.py
│ │ ├── forms.py
│ │ ├── __init__.py
│ │ ├── migrations
│ │ │ ├── 0001_initial.py
│ │ │ ├── 0002_auto_20190913_1447.py
│ │ │ └── __init__.py
│ │ ├── models.py
│ │ ├── templates
│ │ │ └── posts
│ │ │ └── post.html
│ │ ├── tests.py
│ │ └── views.py
│ ├── social
│ │ ├── __init__.py
│ │ ├── settings.py
│ │ ├── urls.py
│ │ └── wsgi.py
│ ├── static
│ │ ├── css
│ │ │ └── style.css
│ │ └── img
│ │ └── logo.svg
│ └── templates
│ ├── base
│ │ ├── css.html
│ │ ├── js.html
│ │ └── navbar.html
│ └── base.html
Your contributions are always welcome and appreciated. Following are the things you can do to contribute to this project.
-
Report a bug
If you think you have encountered a bug, and I should know about it, feel free to report by making an issue and I will take care of it. -
Request a feature
You can also request for a feature. Just make an issue, and if it will viable, it will be picked for development. -
Create a pull request
It can't get better then this, your pull request will be appreciated.
I use an agile continuous integration methodology, so the version is frequently updated and development is really fast.
-
dev
is the development branch. -
master
is the production branch.
Steps to work with feature branch
- To start working on a new feature, create a new branch prefixed with
FEATURE
and followed by feature name. (ie.FEATURE-<feature name>
) - Once you are done with your changes, you can raise PR.
Steps to create a pull request
- Make a PR to
dev
branch. - Comply with the best practices and guidelines e.g. where the PR concerns visual elements it should have an image showing the effect.
After this, changes will be merged.
Make sure that there is onle one extra line after the file ends and remember the indentation.
Pictures of project.
Credits goes to me and other contributors