Skip to content
Open

Dev #17

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
68cd7b6
login redirect fix
Nov 20, 2024
7a6aea3
recruiter login page created
Nov 20, 2024
60bb524
recruiter login and info update functionality addition and fixes
Nov 22, 2024
8f2f81e
post a job and view job added
Nov 23, 2024
b474813
candidate dashboard job population
Nov 24, 2024
ac73b3e
fixed recruiter dashboard css and removed side bar
Nov 24, 2024
ff485ad
Candidate app css fix
Nov 24, 2024
cbb3f8d
code clean up
Nov 24, 2024
6922fbc
added apply action to jobs
Nov 24, 2024
843f1dc
added applicatants card and apllicant population in recruiter dashboard
Nov 24, 2024
edcd9d7
Merge pull request #2 from WolfByteCollective/feature-rerouting-recru…
AkhilChawla Nov 25, 2024
51c159e
cleanup and test case addiition
Nov 25, 2024
1c7eef4
cleanup and test case addiition
Nov 25, 2024
ce8260f
test cases added
Nov 26, 2024
5cb6957
merge conflict
Nov 26, 2024
d57923c
test coverage and application reload issue fix
Nov 26, 2024
fddda5d
added test cases
Nov 26, 2024
26991cd
test case issue fix
Nov 26, 2024
f234bfe
Merge pull request #3 from WolfByteCollective/feature-rerouting-recru…
AkhilChawla Nov 26, 2024
5b10f75
resume upload and pwnload funcitonality added
Nov 26, 2024
f25745a
linkedinID profile added
Nov 26, 2024
cef4aee
Merge pull request #4 from WolfByteCollective/feature-resume-upload-d…
AkhilChawla Nov 26, 2024
3ea7003
User Profile and Applicant details update
Nov 26, 2024
80cb4b1
merged with recruiter dashboard
Nov 26, 2024
17d753e
Wescraping
Nov 26, 2024
0df8d2a
Salary Range update
Nov 26, 2024
2900892
worflow update
Nov 26, 2024
8c7e100
Merge branch 'dev' of https://github.com/WolfByteCollective/applicati…
Nov 26, 2024
a4c999d
Merge pull request #8 from WolfByteCollective/feature-branch
PriyaGandhi311 Nov 26, 2024
04e78bf
Merge pull request #6 from WolfByteCollective/feature-webscraping
sdalal11 Nov 26, 2024
9e76e27
added lint config
Nov 26, 2024
eb6abc5
added lint config and solved merge conflict
Nov 26, 2024
e92fb0b
worflow testing
Nov 26, 2024
e786d68
coverage.yml fix
Nov 26, 2024
32f847a
coverage fix
Nov 26, 2024
f8dc500
covergae.yml fix
Nov 26, 2024
55326cf
covergae fix
Nov 26, 2024
424bff2
coverage.yml fix
Nov 26, 2024
8f80cdc
coverage.yml
Nov 26, 2024
0fc9610
coverage fix
Nov 26, 2024
1c1e139
coverage update
Nov 26, 2024
e14c4c0
coverage fix
Nov 26, 2024
0581388
coverage fixed
Nov 26, 2024
207fe19
lint fix
Nov 26, 2024
d75ad01
coverage renaming
Nov 27, 2024
0f97551
test case fix
Nov 27, 2024
41f0413
Update readme.md
sdalal11 Nov 27, 2024
94d85c0
Update readme.md
PriyaGandhi311 Nov 27, 2024
bf54b30
coverage report generation check
Nov 27, 2024
235ba43
Update readme.md
PriyaGandhi311 Nov 27, 2024
6bed61c
Update readme.md
PriyaGandhi311 Nov 27, 2024
d620169
Update readme.md
PriyaGandhi311 Nov 27, 2024
a540db3
Create images
sdalal11 Nov 27, 2024
c211703
Delete images
sdalal11 Nov 27, 2024
e143989
Create webscraping_image
sdalal11 Nov 27, 2024
3afbbc7
coverage and lint fix
Nov 27, 2024
a01811a
Merge pull request #9 from WolfByteCollective/feature-backend-improve…
AkhilChawla Nov 27, 2024
fa0f333
Add files via upload
sdalal11 Nov 27, 2024
727be8b
Delete images/webscraping
sdalal11 Nov 27, 2024
3261029
Update readme.md
AkhilChawla Nov 27, 2024
0b5b55c
Add files via upload
sdalal11 Nov 27, 2024
80b20f4
Add files via upload
sdalal11 Nov 27, 2024
cbf5b09
Update readme.md
AkhilChawla Nov 27, 2024
b123326
Update readme.md
AkhilChawla Nov 27, 2024
2861058
Add files via upload
sdalal11 Nov 27, 2024
342f48c
Update readme.md
AkhilChawla Nov 27, 2024
09ff06c
Update readme.md
AkhilChawla Nov 27, 2024
4f6ccb9
Update readme.md
sdalal11 Nov 27, 2024
b570988
Merge pull request #10 from WolfByteCollective/sdalal11-patch-1
sdalal11 Nov 27, 2024
cacf614
Update readme.md with issues badges
sdalal11 Nov 27, 2024
3e0efe3
Update readme.md with final badges
sdalal11 Nov 27, 2024
c95cea2
Add files via upload
sdalal11 Nov 27, 2024
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
33 changes: 26 additions & 7 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run tests and upload coverage
name: Tests

on:
push
Expand All @@ -16,13 +16,32 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v4

- name: Install dependencies
run: npm install vitest @vitest/coverage-v8
- name: Install dependencies (frontend)
run: |
cd dashboard
npm install

- name: Run tests
run: npx vitest run --coverage
- name: Run frontend tests
run: |
cd dashboard
npm run test

- name: Upload results to Codecov
- name: Upload frontend coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ secrets.TRACKING_SYSTEM }}

- name: Install dependencies (backend)
run: |
cd new_backend
npm install

- name: Run backend tests
run: |
cd new_backend
npm run test

- name: Upload backend coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.TRACKING_SYSTEM }}
34 changes: 19 additions & 15 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,22 @@ name: Node Lint
on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['14', '16', '18']
steps:
- uses: actions/checkout@v3
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Analysing the code with ESLint
run: |
cd new_backend
npx eslint index.js
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v3
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: |
cd new_backend
npm install
- name: Analyse the code with ESLint
run: |
cd new_backend
npx eslint index.js
38 changes: 0 additions & 38 deletions .github/workflows/test.yml

This file was deleted.

39 changes: 21 additions & 18 deletions backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ def create_app():
CORS(app, resources={r"/*": {"origins": "http://localhost:3000"}})

# get all the variables from the application.yml file
with open("application.yml") as f:
info = yaml.load(f, Loader=yaml.FullLoader)
GOOGLE_CLIENT_ID = info["GOOGLE_CLIENT_ID"]
GOOGLE_CLIENT_SECRET = info["GOOGLE_CLIENT_SECRET"]
CONF_URL = info["CONF_URL"]
app.secret_key = info['SECRET_KEY']
# with open("application.yml") as f:
# info = yaml.load(f, Loader=yaml.FullLoader)
# GOOGLE_CLIENT_ID = info["GOOGLE_CLIENT_ID"]
# GOOGLE_CLIENT_SECRET = info["GOOGLE_CLIENT_SECRET"]
# CONF_URL = info["CONF_URL"]
# app.secret_key = info['SECRET_KEY']

app.config["CORS_HEADERS"] = "Content-Type"
# app.config["CORS_HEADERS"] = "Content-Type"

oauth = OAuth(app)
# oauth = OAuth(app)

@app.errorhandler(404)
def page_not_found():
Expand Down Expand Up @@ -194,6 +194,7 @@ def authorized():
id=get_new_user_id(),
fullName=full_name,
email=users_email,
linkedinId="",
authTokens=[],
applications=[],
skills=[],
Expand Down Expand Up @@ -238,7 +239,7 @@ def sign_up():
return jsonify({"error": "Username already exists"}), 400
password = data["password"]
password_hash = hashlib.md5(password.encode())
user = Users(x
user = Users(
id=get_new_user_id(),
fullName=data["fullName"],
username=data["username"],
Expand All @@ -251,7 +252,8 @@ def sign_up():
phone_number="",
address="",
institution="",
email=""
email="",
linkedinId=""
)
# user.save()
# del user.to_json()["password", "authTokens"]
Expand All @@ -278,6 +280,7 @@ def get_profile_data():
profileInformation["phone_number"] = user["phone_number"]
profileInformation["address"] = user["address"]
profileInformation["email"] = user["email"]
profileInformation["linkedinId"]: user["linkedinId"]
profileInformation["fullName"] = user["fullName"]

return jsonify(profileInformation)
Expand Down Expand Up @@ -397,7 +400,8 @@ def login():
"address": user.address,
"locations": user.locations,
"jobLevels": user.job_levels,
"email": user.email
"email": user.email,
"linkedinId":user.linkedinId
}
return jsonify({"profile": profileInfo, "token": token, "expiry": expiry_str})
except:
Expand Down Expand Up @@ -704,14 +708,12 @@ def _corsify_actual_response(response):


with open("application.yml") as f:
info = yaml.load(f, Loader=yaml.FullLoader)
username = info["USERNAME"]
password = info["PASSWORD"]
cluster_url = info["CLUSTER_URL"]
info = yaml.safe_load(f)
mongodb_uri = info["MONGODB_URI"]
# ca=certifi.where()
app.config["MONGODB_SETTINGS"] = {
"db": "appTracker",
"host": f"mongodb+srv://{username}:{password}@{cluster_url}/",
"host": "mongodb_uri",
}
db = MongoEngine()
db.init_app(app)
Expand All @@ -728,6 +730,7 @@ class Users(db.Document):
password = db.StringField()
authTokens = db.ListField()
email = db.StringField()
linkedinId = db.StringField()
applications = db.ListField()
resume = db.FileField()
skills = db.ListField()
Expand All @@ -743,7 +746,7 @@ def to_json(self):

:return: JSON object
"""
return {"id": self.id, "fullName": self.fullName, "username": self.username}
return {"id": self.id, "fullName": self.fullName, "username": self.username, "linkedinId":self.linkedinId}


def get_new_user_id():
Expand Down Expand Up @@ -793,5 +796,5 @@ def get_new_application_id(user_id):


if __name__ == "__main__":
app.run(host='0.0.0.0', port=5000)
app.run(host='0.0.0.0', port=5002)

6 changes: 6 additions & 0 deletions backend/package-lock.json

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

4 changes: 2 additions & 2 deletions backend/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cycler==0.10.0
decorator==4.4.2
dnspython==2.4.2
email-validator==2.0.0.post2
fake-useragent==1.3.0
fake-useragent==1.5.1
Flask==2.2.2
Flask-Cors==3.0.10
flask-mongoengine==1.0.0
Expand Down Expand Up @@ -53,7 +53,7 @@ MarkupSafe==2.1.3
matplotlib==3.3.4
mccabe==0.6.1
mongoengine==0.27.0
numpy==1.26.1
numpy==1.24.1
oauthlib==3.1.0
opt-einsum==3.3.0
packaging==23.2
Expand Down
17 changes: 15 additions & 2 deletions dashboard/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,18 @@ module.exports = {
'^.+\\.[t|j]sx?$': 'babel-jest'
},
transformIgnorePatterns: ['<rootDir>/node_modules/'],
testEnvironment: 'jsdom'
};
testEnvironment: 'jsdom',
setupFilesAfterEnv: ['./src/setupTests.js'],
moduleNameMapper: {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
"\\.(scss|sass|css)$": "identity-obj-proxy"
},
collectCoverage: true,
coverageDirectory: "coverage",
collectCoverageFrom: [
"src/**/*.{js,jsx,ts,tsx}",
"!src/index.js",
"!src/**/*.test.{js,jsx}",
],
coverageReporters: ["json", "lcov", "text", "clover"],
};
Loading