Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/refactor to typescript #775

Open
wants to merge 72 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
5da7a58
- Implement attendance preference for hackers.
brarsanmol Oct 29, 2021
84600b8
Fix spelling errors for accommodation in the codebase.
brarsanmol Oct 30, 2021
bdb2cb5
feat: start of the major refactor.
brarsanmol Nov 29, 2021
72d48a4
refactor: first push towards decorator based approach for middleware …
brarsanmol Dec 12, 2021
ab0df18
feat: update e-mail templates to MJML.
brarsanmol Dec 18, 2021
016142a
refactor: remove unnecessary files.
brarsanmol Dec 18, 2021
1adb931
fix: change invalid directories for e-mail partials to valid ones.
brarsanmol Dec 22, 2021
db3561e
feat: add new/updated packages.
brarsanmol Dec 22, 2021
639a78f
feat: implement 90% of account related features.
brarsanmol Dec 23, 2021
dacc2d7
feat: add password-reset service (forgot to add to previous commit).
brarsanmol Dec 23, 2021
6ae3332
refactor: remove unnecessary routing files, models, related controlle…
brarsanmol Dec 23, 2021
49c9c87
refactor: remove models for the deleted services in the previous commit.
brarsanmol Dec 23, 2021
fd2d47b
refactor: remove .idea files from .gitignore.
brarsanmol Dec 23, 2021
f2efdaf
refactor: change e-mail service to use nodemailer.
brarsanmol Dec 23, 2021
ff0da16
fix: spelling error in function to retrieve database information.
brarsanmol Dec 23, 2021
a8d661c
refactor: update environment setup file.
brarsanmol Dec 23, 2021
2d6c073
feat: add MIT license.
brarsanmol Dec 25, 2021
6170f47
refactor: remove unnecessary models, controllers, and services.
brarsanmol Dec 26, 2021
b02e3e4
refactor: team, travel, and sponsor services & controllers, hacker co…
brarsanmol Dec 26, 2021
4e013d3
fix: add logging to catch storage service errors.
brarsanmol Dec 26, 2021
fc76cba
refactor: reimplement search service and search controller for sql.
brarsanmol Dec 26, 2021
b92442d
feat: add ability to upload & download resumes, delete old js files.
brarsanmol Dec 26, 2021
10c109b
feat: remove older validators, and start using class-validator.
brarsanmol Dec 26, 2021
3c2da70
refactor: remove unnecessary routing, middleware, and script files.
brarsanmol Dec 26, 2021
f0fdfa8
feat: add ability to update application fields using hacker service.
brarsanmol Dec 26, 2021
b52b336
fix: avoid tsyringe attempting di on search service constructor, and …
brarsanmol Dec 26, 2021
1414274
feat: change settings js file to ts, start migration to enums for con…
brarsanmol Dec 26, 2021
e27eedc
refactor: create and move relevant files to 'src' folder to help with…
brarsanmol Dec 27, 2021
8e59ea4
refactor: update dependencies, and remove unneeded ones, transpile to…
brarsanmol Dec 27, 2021
2532510
refactor: delete old scripts for hacker related actions.
brarsanmol Jan 3, 2022
bbeb349
refactor: add linting rules for typescript and aliases for folders.
brarsanmol Jan 3, 2022
99c4737
fix: bug fixes in the team, logging, search, and hacker services.
brarsanmol Jan 3, 2022
8b16eff
feat: hacker status and user type as enums in the constants file.
brarsanmol Jan 3, 2022
d0d4cc7
fix: linting errors, code cleanup, small relational fixes.
brarsanmol Jan 3, 2022
c8696ee
refactor: token & strategy model names to kebab case.
brarsanmol Jan 3, 2022
a1f0293
feat: add /self endpoint to account controller.
brarsanmol Jan 3, 2022
6f191e8
feat: add temporary settings controller.
brarsanmol Jan 3, 2022
770615e
fix: remove the usage of require from app.ts & register settings cont…
brarsanmol Jan 3, 2022
ff12bb5
feat: add /self endpoint to hacker controller.
brarsanmol Jan 3, 2022
0fec818
fix: parse json input for query in search service & remove old body i…
brarsanmol Jan 3, 2022
cff114a
feat: add flag to allow identifier check to be skipped on authorizati…
brarsanmol Jan 3, 2022
7780c3c
fix: bug fixes for team controller.
brarsanmol Jan 3, 2022
e2f8728
feat: add typescript paths.
brarsanmol Jan 3, 2022
ddb9404
refactor: remove old unit tests.
brarsanmol Jan 21, 2022
6b2d8bb
refactor: remove marketing e-mails.
brarsanmol Jan 21, 2022
fcaea80
feat(app.ts,index.ts): rewrite app launch file to support testing.
brarsanmol Feb 3, 2022
d78aed7
chore(package.json,package.lock.json): remove unused packages & add t…
brarsanmol Feb 3, 2022
53861e9
feat: configure jest
brarsanmol Feb 3, 2022
e9c00e7
chore(.nvmrc): update to the node lts
brarsanmol Feb 3, 2022
d0b0bea
chore(.gitignore): ammend to ignore all .env files
brarsanmol Feb 3, 2022
baa2022
refactor: remove env & db service
brarsanmol Feb 3, 2022
9d6686d
fix(authenticated.middleware.ts): fix bug where 401 response is not sent
brarsanmol Feb 3, 2022
22da939
fix(authorization.middleware.ts): allow 404's for entities to be retu…
brarsanmol Feb 3, 2022
7b74fe0
feat: validation middleware for models
brarsanmol Feb 3, 2022
59b16f2
fix: remove validation for account identifier
brarsanmol Feb 3, 2022
294d88d
fix(hacker.controller.ts): use nullability operator
brarsanmol Feb 3, 2022
8acb79e
feat: add ability for partial types to be validated
brarsanmol Feb 3, 2022
4ea22e7
feat: add validation on post and patch routes
brarsanmol Feb 3, 2022
956c97e
feat(email.service.ts): add sendgrid transport for production
brarsanmol Feb 3, 2022
f4b0d01
build(app.json): update heroku config to latest environment variables
brarsanmol Feb 3, 2022
319ab7c
chore(.env.example): remove outdated example env
brarsanmol Feb 3, 2022
3049e81
feat: add settings model, controller, and service
brarsanmol Feb 4, 2022
74d14a0
feat: implement account invites
brarsanmol Mar 20, 2022
b879405
fix(account.controller.ts): make invite token optional
brarsanmol Mar 20, 2022
72674e5
feat: add settings seed, and placeholders in templating files
brarsanmol Mar 21, 2022
523ec9d
refactor(search.service.ts): add interfaces to model filtering
brarsanmol May 12, 2022
fde223d
build(Dockerfile): add containerization to improve onboarding
brarsanmol May 13, 2022
62edd8f
refactor: remove old documentation and apidocs
brarsanmol May 13, 2022
4f43ee5
refactor(.github): remove old templates and dependabot
brarsanmol May 14, 2022
58007d4
chore: remove useless files
brarsanmol May 14, 2022
5fd9c10
chore: add commit hooks for auto-linting, and enforcing conventional …
brarsanmol May 14, 2022
7fd4b7d
chore: dedupe npm packages
brarsanmol May 14, 2022
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
2 changes: 0 additions & 2 deletions .dockerignore

This file was deleted.

19 changes: 15 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,26 @@
"node": true,
"mocha": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2017,
"ecmaVersion": 2019,
"sourceType": "module"
},
"plugins": [
"prettier"
"prettier",
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"prettier"
]
"prettier",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/no-require-imports": ["error"],
"@typescript-eslint/array-type": ["error", {
"default": "generic"
}],
"@typescript-eslint/no-explicit-any": "off"
}
}
59 changes: 4 additions & 55 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,57 +1,3 @@
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/dictionaries
.idea/**/shelf

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# CMake
cmake-build-debug/
cmake-build-release/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Root Idea Folder

# Node JS
node_modules

Expand All @@ -64,7 +10,10 @@ gcp_creds.json
#certbot
certbot/

assets/.DS_Store
.DS_Store

#secrets
secret.yaml

# compile output folder.
dist/
12 changes: 0 additions & 12 deletions .idea/Hackboard.iml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/jsLibraryMappings.xml

This file was deleted.

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

This file was deleted.

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

This file was deleted.

11 changes: 0 additions & 11 deletions .idea/runConfigurations/bin_www.xml

This file was deleted.

14 changes: 0 additions & 14 deletions .idea/vcs.xml

This file was deleted.

4 changes: 3 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
"singleQuote": false,
"semi": true,
"arrowParens": "always",
"jsxBracketSameLine": false
"jsxBracketSameLine": false,
"bracketSpacing": true,
"trailingComma": "none"
}
18 changes: 0 additions & 18 deletions Dockerfile

This file was deleted.

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 HackMcGill

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
133 changes: 0 additions & 133 deletions app.js

This file was deleted.

Loading