/social

For Passionate Gamers. 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.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Open Issues Forks Stars Maintained Made with Python Open Source Love Built with Love Follow Me Telegram

📒 Index

🔰 About

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.

⚡ Usage

The project will be hosted online and even on TOR.

📦 Commands

python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py runserver

🔧 Development

Everyone is welcome to contribute just follow the steps.

📓 Pre-Requisites

List all the pre-requisites the system needs to develop this project.

  • Basic knowledge on virtual environment
  • Minimal knowledge of django

🔩 Development Environment

1. Create & activate the virtual environment

python3 -m venv test
source test/bin/activate

2. Clone the Repository

git clone https://github.com/nightwarrior-xxx/social.git
cd social

3. Install the dependencies

pip install -r requirements.txt

4. Generate Secret key for django

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

5. Setup postgress database

Check out this link to setup postgress database here

6. Create a super user & Run server:

python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver

📁 File Structure

├── 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

🌸 Community

🔥 Contribution

Your contributions are always welcome and appreciated. Following are the things you can do to contribute to this project.

  1. 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.

  2. 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.

  3. Create a pull request
    It can't get better then this, your pull request will be appreciated.

🌵 Branches

I use an agile continuous integration methodology, so the version is frequently updated and development is really fast.

  1. dev is the development branch.

  2. master is the production branch.

Steps to work with feature branch

  1. To start working on a new feature, create a new branch prefixed with FEATURE and followed by feature name. (ie. FEATURE-<feature name>)
  2. Once you are done with your changes, you can raise PR.

Steps to create a pull request

  1. Make a PR to dev branch.
  2. 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.

❗ Guideline

Make sure that there is onle one extra line after the file ends and remember the indentation.

📷 Gallery

Pictures of project.

🌟 Credit/Acknowledgment

Credits goes to me and other contributors

🔒 License

LICENSE