Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JusticeV452 authored Feb 9, 2024
0 parents commit ab026ba
Show file tree
Hide file tree
Showing 58 changed files with 10,788 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env", "@babel/preset-react"]
}
291 changes: 291 additions & 0 deletions .editorconfig

Large diffs are not rendered by default.

61 changes: 61 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"parser": "babel-eslint",

"env": {
"browser": true
},

"extends": [
"plugin:react/recommended"
],


"plugins": [
"react"
],

"rules": {
"arrow-body-style": ["off"],
"class-methods-use-this": ["off"],
"comma-dangle": ["warn"],
"dot-notation": ["off"],
"eqeqeq": ["error", "always"],
"import/extensions": ["off"],
"import/prefer-default-export": ["off"],
"indent": ["warn", 4],
"linebreak-style": ["off"],
"max-classes-per-file": ["off"],
"max-len": ["warn", { "code": 100, "ignoreUrls": true }],
"no-console": ["off"],
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
"no-multiple-empty-lines": ["off"],
"no-param-reassign": ["off"],
"no-plusplus": ["off"],
"no-restricted-syntax": ["off"],
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"no-useless-constructor": ["off"],
"object-curly-spacing": ["warn"],
"object-shorthand": ["off"],
"operator-linebreak": ["warn"],
"prefer-destructuring": ["off"],
"prefer-template": ["off"],
"quote-props": ["error", "consistent"],
"quotes": ["warn"],
"radix": ["off"],
"react/no-unescaped-entities": [ "error", { "forbid": [">", "}"] }],
"semi": ["error", "always"]
},

"settings": {
"react": {
"version": "detect"
}
},

"overrides": [
{
"files": [ "**/*.test.js" ],
"env": { "jest": true }
}
]
}
79 changes: 79 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: CI

on:
push:
branches:
- main
- '*_CI' # run on branches suffixed with _CI
pull_request:
branches:
- '*'

jobs:
##############################################################################
# Python jobs
##############################################################################
backend_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: '3.9'
architecture: 'x64'
- name: Install Python packages and Ubuntu dependencies
run: |
pip install -r requirements.txt
- name: Run Django tests
run: |
cd backend
python manage.py migrate
python manage.py test
python_linters:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: '3.9'
architecture: 'x64'
- name: Install Python packages
run: |
pip install -r requirements.txt
pip install pylint
- name: Run pylint on backend/
run: pylint backend/


##############################################################################
# JS jobs
##############################################################################

js_linters:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '14.17'
- name: Install frontend deps and eslint
run: |
npm ci
- name: Run eslint on frontend/src
run: |
./node_modules/.bin/eslint --max-warnings 0 frontend/**/*.js
frontend_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '14.17'
- name: Install frontend deps
run: |
npm ci
# - name: Run frontend tests
# run: |
# cd frontend
# CI=true npm run test

159 changes: 159 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# PyCharm (but not everything!)
.idea/workspace.xml
.idea/pylint.xml
.idea/dataSources.xml
.idea/dataSources.local.xml
.idea/usage.statistics.xml
.idea/tasks.xml
.idea/runConfigurations

# dependencies
frontend/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
build/
static/

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
*.swp

# Build byproducts
webpack-stats-dev.json
webpack-stats.json

# Google authentication byproducts
token.pickle

node_modules
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 53 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ab026ba

Please sign in to comment.