Skip to content

Commit 273682c

Browse files
committed
Initial commit
0 parents  commit 273682c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+16200
-0
lines changed

.gitignore

+130
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
*.sqlite3
28+
migrations/
29+
staticfiles/
30+
media/
31+
.idea/
32+
33+
# PyInstaller
34+
# Usually these files are written by a python script from a template
35+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
36+
*.manifest
37+
*.spec
38+
39+
# Installer logs
40+
pip-log.txt
41+
pip-delete-this-directory.txt
42+
43+
# Unit test / coverage reports
44+
htmlcov/
45+
.tox/
46+
.coverage
47+
.coverage.*
48+
.cache
49+
nosetests.xml
50+
coverage.xml
51+
*.cover
52+
.hypothesis/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
62+
# Flask stuff:
63+
instance/
64+
.webassets-cache
65+
66+
# Scrapy stuff:
67+
.scrapy
68+
69+
# Sphinx documentation
70+
docs/_build/
71+
72+
# PyBuilder
73+
target/
74+
75+
# Jupyter Notebook
76+
.ipynb_checkpoints
77+
78+
# pyenv
79+
.python-version
80+
81+
# celery beat schedule file
82+
celerybeat-schedule
83+
84+
# SageMath parsed files
85+
*.sage.py
86+
87+
# dotenv
88+
.env
89+
90+
# virtualenv
91+
.venv
92+
venv/
93+
ENV/
94+
95+
# Spyder project settings
96+
.spyderproject
97+
.spyproject
98+
99+
# Rope project settings
100+
.ropeproject
101+
102+
# mkdocs documentation
103+
/site
104+
105+
# mypy
106+
.mypy_cache/
107+
.DS_Store
108+
109+
110+
# Database
111+
muglodb
112+
db.sqlite3
113+
114+
# VueJS files
115+
.DS_Store
116+
node_modules/
117+
/dist/
118+
npm-debug.log*
119+
yarn-debug.log*
120+
yarn-error.log*
121+
/test/unit/coverage
122+
/test/e2e/reports
123+
selenium-debug.log
124+
125+
# Editor directories and files
126+
.idea
127+
*.suo
128+
*.ntvs*
129+
*.njsproj
130+
*.sln

.travis.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
language: python
2+
python:
3+
- "3.6"
4+
addons:
5+
postgresql: "9.6"
6+
dist: trusty
7+
before_script:
8+
- psql -c "CREATE DATABASE wocdb;" -U postgres
9+
- psql -c "CREATE USER wocuser WITH LOGIN PASSWORD 'password';" -U postgres
10+
- psql -c "ALTER ROLE wocuser WITH CREATEDB;" -U postgres
11+
- psql -c "GRANT ALL PRIVILEGES ON DATABASE wocdb TO wocuser;" -U postgres
12+
before_install:
13+
- export DJANGO_SETTINGS_MODULE=woc.settings
14+
- export DJANGO_SECRET_KEY='q$o5mx19x9(9_^rzqf@o@s^t%t!ghix7($f9ymy49_^ryzq9x9'
15+
install:
16+
- pip3 install pipenv
17+
- pipenv install --dev
18+
script:
19+
- cd src
20+
- source "$(pipenv --venv)"/bin/activate
21+
- flake8 .
22+
- python manage.py makemigrations
23+
- python manage.py migrate
24+
- coverage run manage.py test
25+
- cd ../ui
26+
- npm install
27+
- npm run build
28+
#after_success:
29+
# - coveralls

ISSUE_TEMPLATE.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## Issue
2+
[ABSTRACT ABOUT THE ISSUE]
3+
4+
## Description
5+
[DESCRIBE ISSUE WITH RELEVANT INFO, LOGS, SCREENSHOTS]
6+
7+
## Expected
8+
[STATE THE EXPECTED BEHAVIOUR HERE]
9+
10+
## Actual
11+
[STATE THE CURRENT BEHAVIOUR HERE]
12+
13+
### Changes [Required]
14+
- [ ] [LIST THE CHANGES REQUIRED TO FIX THIS ISSUE]

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Open Source Group IIT Jodhpur
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

PULL_REQUEST_TEMPLATE.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
### Description
2+
Include a summary of the change and relevant motivation/context.
3+
List any dependencies that are required for this change.
4+
5+
Fixes # [ISSUE NUMBER HERE]
6+
7+
### Type of Change:
8+
**Delete irrelevant options.**
9+
10+
- Code
11+
- Quality Assurance
12+
- User Interface
13+
- Documentation
14+
- Test
15+
16+
**Code/Quality Assurance Only**
17+
- Bug fix (non-breaking change which fixes an issue)
18+
- This change requires a documentation update (software upgrade on readme file)
19+
- New feature (non-breaking change which adds functionality pre-approved by maintainers)
20+
21+
### Checklist:
22+
**Delete irrelevant options.**
23+
24+
- [ ] My PR follows the style guidelines of this project
25+
- [ ] I have commented my code or provided relevant documentation
26+
- [ ] I have made corresponding changes to the documentation
27+
- [ ] Any dependent changes have been merged
28+
29+
**Code/Quality Assurance Only**
30+
- [ ] My changes generate no new warnings
31+
- [ ] My PR currently breaks something (fix or feature that would cause existing functionality to not work as expected)
32+
- [ ] I have added tests that prove my fix is effective
33+
- [ ] New and existing unit tests pass locally with my changes

Pipfile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
django = "==2.1"
8+
django-decouple = "==2.1"
9+
django-cleanup = "==2.1.0"
10+
social-auth-app-django = "==2.1.0"
11+
djangorestframework = "==3.8.2"
12+
coreapi = "==2.3.3"
13+
psycopg2 = "==2.7.5"
14+
15+
[dev-packages]
16+
flake8 = "==3.5.0"
17+
coveralls = "*"
18+
19+
[requires]
20+
python_version = "3.6"

0 commit comments

Comments
 (0)