Coder Social home page Coder Social logo

fossee-forum's Introduction

FOSSEE Forum

A WebApp to provide online discussion, question and answer for professional and programmers. Documentation for installation of requirements for FOSSEE-forum project

Clone

  • Make sure your Internet is working.

  • Clone this repo by typing

    git clone https://github.com/FOSSEE/FOSSEE-Forum.git
    

Installation

  • Install Virtual Environment. Virtual environment is used to make the installation easier, and will help to avoid clutter in the system wide libraries. Use the following command

    sudo apt-get install python-virtualenv
    
  • Create a Virtual Environment

    virtualenv /path/to/virtualenv-name
    
  • Activate the virtualenv using the command

    source /path/to/virtualenv-name/bin/activate
    
  • Change the directory to the FOSSEE-forum/ project using the command

    cd /path/to/FOSSEE-forum
    
  • Install pre-requisites using the command (please don't use sudo)

    pip install -r requirements.txt
    

-Install MySQL using the following command

sudo apt-get install mysql-server

Usage

  • Using MySQL (For development server only). Though, we recommend to use MySQL for deployment server. See settings.py file for usage.

  • Create 'forum' database in 'MySQL'. Open 'MySQL' using the following command

    mysql -u root -p
    

    and then create database using following command

    create database forum
    
  • Only for Server deployment, open FOSSEE-forums/forums/settings.py file and make the following changes

    DATABASES = {
        'default': {
        'ENGINE': 'django.db.backend.mysql',
        'NAME'  : 'forum',
        'USER': '',
        'PASSWORD': '',
        'HOST': '',
        'PORT': '',
        }
    }
    
  • For development on your machine, create a file config.py in FOSSEE-forums/forums/ and add

    db_user='root' #(MySql username)
    
    db_pass = 'root' #(MySql password)
    

    Then open file FOSSEE_forums/forums/local.py and change following to yours

    DB_USER
    DB_PASS
    TO_EMAIL_ID
    
  • For development on your machine, open FOSSEE-forums/forums/settings.py file and make the following changes

    DATABASES = {
        'default': {
        'ENGINE': 'django.db.backend.mysql',
        'NAME'  : 'forum',
        'USER': db_user,
        'PASSWORD': db_pass ,
        'HOST': '',
        'PORT': '',
        }
    }
    
  • Migrate the database using the following command

    cd /path/to/FOSSEE-forum
    
    python manage.py makemigrations
    
    python manage.py migrate
    
    python manage.py makemigrations website
    
    python manage.py migrate website
    
  • Run the following command to populate the category in the database

    python manage.py populatecategory
    
  • Start the server using the command

    python manage.py runserver
    

Contributing

  • Never edit the master and fossee-forum branch.
  • Make a branch specific to the feature you wish to contribute on.
  • Send me a pull request.
  • Please follow PEP8 style guide when coding in Python.

License

GNU GPL Version 3, 29 June 2007.

Please refer this link for detailed description.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.