Git Product home page Git Product logo

codango's Introduction

Codango

Coverage Status Scrutinizer Code Quality CircleCI

Description

Codango is a Resource Sharing Social Network for Coders.

Codango resource sharing includes Code Snippets posting and Pdf uploads. Codango also allows for Pair Programming and Networking among coders.

Installation

  1. Clone the repository and create a Virtual Environment.
    • Run virtualenv <virtualenvname> to create the virtual environment or mkvirtualenv <virtualenvname> if using virtualenv wrapper to create the virtual environment.
  2. Install all the necessary requirements by running pip install -r requirements.txt within the virtual environment.
  3. Configure your database configurations in a development.py and save in the settings folder (sample shown below) You'll need to install postgres for this. If you don't have it installed, download it here.
    Sample development.py
    #!/usr/bin/python
    # -*- coding: utf-8 -*-
    
    from .base import *
    import sys
    
    if 'test' in sys.argv:
        DATABASES = {
            'default': {
                'ENGINE': 'django.db.backends.sqlite3',
                'NAME': 'testdatabase',
            }
        }
    else:
        DATABASES = {
            'default': {
                'ENGINE': 'django.db.backends.postgresql_psycopg2',
                'NAME': 'codango', # Enter your database's name
                'USER': 'user', # Enter your DB user
                'PASSWORD': 'p@ssw0rd', # Enter your DB password
                'HOST': '127.0.0.1',
                'PORT': '5432',
            }
        }
    
    If you prefer another 3rd party DB backend update the second 'ENGINE' value accordingly
  4. Create a .env.yml to hold all your environment variables, like your secret key, save in the same level as your README.md file (sample shown below)
    Sample .env.yml format
    api_key:
    "123456789101112"  # This is your API key
    api_secret:
    "Abc_DefgHIjKlmn-O1pqRStu2V"  # This is your API secret
    cloud_name:
    "codangofile"
    SECRET_KEY:
    "12345678910111213141516171819202122232425"  # This is the Secret key
    sendgrid_apikey:
    "1234567891011121314151617181920212223242526272829303132333435"  # This is your SendGrid API Key
    GITHUB_CLIENT_ID:
        "123456789101112131415"  # This is your Github client ID
    GITHUB_SECRET_KEY:
        "12345678910111213141516171819202122232425"  # This is your Github secret Key
    CELERY_NOTIFICATION_TIMEOUT:
        "10"  # This is the timeout set to 10 seconds (Increase this parameter for production)
    
    
  5. Run bower install to install all front end dependencies. Please ensure you are on the same level with .bowerrc when you run this command
  6. Run cd codango to navigate into the project directory
  7. Run python manage.py collectstatic to copy all your static files into the staticfiles directory
  8. Run python manage.py makemigrations and python manage.py migrate to create the necessary tables and everything required to run the application.
  9. Run python manage.py runserver to run the app.
  10. Run coverage run manage.py test to know how much the app is covered by automated testing.
  11. Run coverage report to view the report of the coverage on your terminal.
  12. Run coverage html to produce the html of coverage result.

Running tests

  1. Activate virtual environment.
  2. Navigate into the project directory.
  3. Run python manage.py test to test codango.
  4. Run python manage.py test <appname> to test an individual app.
  5. Run coverage run manage.py test to run coverage for codango.

REST API

Codango has a REpresentational State Transfer (REST) Application Program Interface (API) The documentation done on Apiary is here.

The API endpoints are accessible at localhost:8000/api/v1/

To run tests specific to the API Run python manage.py test api

Authors

Copyright

Andela © 2015 - 2016 CODANGO

codango's People

Contributors

ndagistanley avatar inioluwa avatar afropolymath avatar jubrilissa avatar jimmykamau avatar

Watchers

James Cloos avatar Ivan Chen avatar

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.