Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
1925086
Seperate settings for dev, predev and production
amakarudze Oct 21, 2017
1f773ab
Update .gitignore
amakarudze Oct 21, 2017
ee9627f
Update .gitignore
amakarudze Oct 21, 2017
3efddb1
Merge branch 'predev' of https://github.com/amakarudze/OpenSourceHelp…
amakarudze Oct 21, 2017
2646934
Changed travis config
vaibhavsingh97 Oct 23, 2017
b181723
Added test case for contest form, chat session form
vaibhavsingh97 Oct 23, 2017
5170211
Added coveragerc file
vaibhavsingh97 Oct 29, 2017
d4dfa9d
changed travis ci config
vaibhavsingh97 Oct 29, 2017
a1a4586
Fixed problem with test case
vaibhavsingh97 Nov 6, 2017
ce4c223
Base for read the docs
tapaswenipathak Nov 26, 2017
56c6bce
enable markdown
tapaswenipathak Nov 26, 2017
07459f0
Update .travis.yml
amakarudze Dec 15, 2017
e2722e6
Update .gitignore
amakarudze Dec 15, 2017
ea6096f
move contact from header to footer #211 (#214)
alagram Dec 25, 2017
514be05
Update PULL_REQUEST_TEMPLATE.md
anubhakushwaha Dec 27, 2017
a520ac6
Move Journey from header to footer
aaronmaynard Dec 30, 2017
1bd35db
Merge pull request #221 from aaronmaynard/patch-2
tapaswenipathak Jan 1, 2018
921d353
Configure flake8 and yapf with pre-commit (#215)
vinaypuppal Jan 1, 2018
3741eed
Fix broken links
tapaswenipathak Jan 1, 2018
3f4cd11
Use env variables to set SMTP settings
jarifibrahim Jan 5, 2018
850a09f
Corrected the "View Session" url. (#225)
aman9875 Jan 6, 2018
4cf4563
Removed target attribute from some links.
Nickatak Jan 9, 2018
0186490
Merge pull request #227 from Nickatak/predev
tapaswenipathak Jan 13, 2018
5418f85
Use console email backend if DEBUG=true
jarifibrahim Jan 13, 2018
f12c3ec
Merge pull request #228 from jarifibrahim/local-email-backend
tapaswenipathak Jan 13, 2018
50e3f02
Attempt to make it responsive (#217)
anubhakushwaha Jan 14, 2018
13f85b0
typing error fixed
Joshua2504 Sep 2, 2018
20619ca
Merge pull request #230 from Joshua2504/patch-1
tapaswenipathak Dec 16, 2018
d833029
Merge pull request #180 from vaibhavsingh97/Patch4/addAutenticationTe…
tapaswenipathak Dec 16, 2018
ee7a4ad
Merge pull request #182 from vaibhavsingh97/Patch5/addTestCase
tapaswenipathak Dec 16, 2018
95a2a05
Merge pull request #192 from OpenSourceHelpCommunity/rtd
tapaswenipathak Dec 16, 2018
d918ef1
Merge pull request #200 from amakarudze/anna-predev
tapaswenipathak Dec 16, 2018
2e8da0f
Merge branch 'predev' into env-variable
tapaswenipathak Dec 16, 2018
778ac2b
Merge pull request #222 from jarifibrahim/env-variable
tapaswenipathak Dec 16, 2018
d84a0b7
Remove email related settings and disable email verification
jarifibrahim Dec 16, 2018
e11647c
Add post for social media channel coordinator
tapaswenipathak Dec 22, 2018
f400a39
predev -> dev (#231)
tapaswenipathak Dec 23, 2018
c8ff23d
List all sessions in allsessions page (#193)
tapaswenipathak Dec 23, 2018
d6dab2e
base for about (#198)
tapaswenipathak Dec 23, 2018
c9c14fa
online
tapaswenipathak Feb 3, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
7 changes: 7 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[report]
omit =
*migrations*
*/tests/*
oshc/manage.py
oshc/oshc/*
*/admin.py
6 changes: 6 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[flake8]
ignore =
# A continuation line is under-indented for a visual indentation.
E128

max-line-length=80
13 changes: 13 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
exclude: '^$'
fail_fast: true
repos:
- repo: https://github.com/pre-commit/mirrors-yapf
sha: v0.20.0
hooks:
- id: yapf
- repo: https://github.com/pre-commit/pre-commit-hooks
sha: v1.1.1
hooks:
- id: check-yaml
- id: check-added-large-files
- id: flake8
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ install:
- pip install coveralls

before_script:
- export SECRET_KEY='x1-pogt0-b5owbgq0=ui02-4v)bba!bg&1m8_$)8-&13(907qf'
- psql -c 'create database travis_ci_test;' -U postgres
- cd oshc/
- python manage.py migrate --noinput
- python manage.py collectstatic --noinput
- git diff-tree --no-commit-id --name-only -r $REVISION | xargs pre-commit run --files

script:
- flake8 . --ignore=E128
- coverage run --source='main' manage.py test --verbosity 2
- coverage run --source='.' manage.py test --verbosity 2

after_success:
- coverage report
Expand Down
55 changes: 34 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,53 +9,66 @@ We are trying to create a medium where people who want to start with contributin
[Website](http://opensourcehelpcommunity.herokuapp.com/) [WIP]

## Deployement details

After every commit

1. The `predev` branch on GitHub is automatically deployed to [opensourcehelpcommunity-predev.herokuapp.com](http://opensourcehelpcommunity-predev.herokuapp.com/).
2. The `develop` branch on github is automatically deployed to [opensourcehelpcommunity-dev.herokuapp.com](http://opensourcehelpcommunity-dev.herokuapp.com/).
3. The `master` branch is automatically deployed [to opensourcehelpcommunity.herokuapp.com](http://opensourcehelpcommunity.herokuapp.com/) .
1. The `develop` branch on github is automatically deployed to [opensourcehelpcommunity-dev.herokuapp.com](http://opensourcehelpcommunity-dev.herokuapp.com/).
1. The `master` branch is automatically deployed [to opensourcehelpcommunity.herokuapp.com](http://opensourcehelpcommunity.herokuapp.com/) .

This is using [Django(1.11)](https://www.djangoproject.com/) and [Bootstrap](http://getbootstrap.com/)

## How to Contribute
This is an Open Source project and we would be happy to see contributors who report bugs and file feature requests submitting pull requests as well. This project adheres to the Collaborative [code of conduct](https://github.com/OpenSourceHelpCommunity/OpenSourceHelpCommunity.github.io/blob/develop/CODE_OF_CONDUCT.md). By participating, you expect to maintain the code of conduct. Before creating `New issue` and `Pull request`, please refer to the [template](docs).

This is an Open Source project and we would be happy to see contributors who report bugs and file feature requests submitting pull requests as well. This project adheres to the Collaborative [code of conduct](https://github.com/OpenSourceHelpCommunity/OpenSourceHelpCommunity.github.io/blob/develop/CODE_OF_CONDUCT.md). By participating, you expect to maintain the code of conduct. Before creating `New issue` and `Pull request`, please refer to the [template](docs).

All the development is done on `predev` branch and once we're ready for testing the deployment in real environment with databases we merge the `predev` branch with the `develop` branch. When we're ready for new release we merge `develop` with `master` to deploy it on our main website. **Please submit your pull request based on `predev` branch.**

## Installations

Run
```

```bash
pip install -r requirements.txt
```
to install everything required to run this project on heroku as well as on your local.

to install everything required to run this project on heroku as well as on your local.

## To run this in your local

1. Clone this repository using
```
git clone git@github.com:OpenSourceHelpCommunity/OpenSourceHelpCommunity.github.io.git
```

2. Go inside main Django app [Instructional video on installing Django](https://youtu.be/qgGIqRFvFFk)
```
cd oshc
```
```bash
git clone git@github.com:OpenSourceHelpCommunity/OpenSourceHelpCommunity.github.io.git
```

1. Go inside main Django app [Instructional video on installing Django](https://youtu.be/qgGIqRFvFFk)

```bash
cd oshc
```

1. Install [pre-commit](http://pre-commit.com/) into your git hooks. [pre-commit](http://pre-commit.com/) will now run on every commit. Every time you clone a project that is using [pre-commit](http://pre-commit.com/) running [pre-commit](http://pre-commit.com/) install should always be the first thing you do after installing requirements.

```bash
pre-commit install
```

1. Collectstatic files using

3. Collectstatic files using
```
python manage.py collectstatic
```
```bash
python manage.py collectstatic
```

4. Run the app
```
python manage.py runserver
```
1. Run the app
```bash
python manage.py runserver
```

To run the web app in Debug mode set the DEBUG environment variable.
In Linux, run the `export DEBUG=True` command in the terminal.

Feel free to raise and fix issues.
For any questions, join #oshc-dev on Slack. Get an invite [here](https://opensourcehelp.herokuapp.com/).

Note : All design related tasks have reward associated with them.
Note: All design related tasks have reward associated with them.
20 changes: 20 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXPROJ = OpenBuds
SOURCEDIR = source
BUILDDIR = build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
2 changes: 1 addition & 1 deletion docs/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

**Checklist**

- [ ] My branch is up-to-date with the upstream `develop` branch.
- [ ] My branch is up-to-date with the upstream `predev` branch.
- [ ] I have added necessary documentation (if appropriate).

**Which issue does this PR fix?**: fixes #
Expand Down
36 changes: 36 additions & 0 deletions docs/make.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
@ECHO OFF

pushd %~dp0

REM Command file for Sphinx documentation

if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=source
set BUILDDIR=build
set SPHINXPROJ=OpenBuds

if "%1" == "" goto help

%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
exit /b 1
)

%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
goto end

:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%

:end
popd
Loading