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

[Issue # 17] Job Posting CRUD API for Backend Service #19

Merged
merged 16 commits into from
May 10, 2024

Conversation

ama-cantabile
Copy link
Contributor

@ama-cantabile ama-cantabile commented May 7, 2024

Added the following:

  • Patch endpoint to update any desired fields in the job postings collection
  • Delete endpoint to delete a job posting in the database
  • Post endpoint to add job posting to the database
  • Get endpoint to get job posting(s) associated with email from the database
  • Get endpoint for site 1
  • Get endpoint for site 2
  • Get endpoint for site 3
  • Get endpoint for site 4

@ama-cantabile ama-cantabile self-assigned this May 7, 2024
@ama-cantabile ama-cantabile added the enhancement New feature or request label May 7, 2024
@ama-cantabile
Copy link
Contributor Author

Updated the following:

  • Implemented a singleton pattern for the database connection
  • Updated the site names to be more specific
  • Put repeated Get requests codes for sites together in a separate js file

@ama-cantabile
Copy link
Contributor Author

ama-cantabile commented May 10, 2024

Updated the following:

  • Fixed database connection bugs by removing database closing function
  • Added Get request by ID for job posting

@AlexLLKong AlexLLKong merged commit e40065d into main May 10, 2024
1 check passed
AlexLLKong added a commit that referenced this pull request May 16, 2024
* Added mongoDB connection configuration

* Added a post request for job posting

* Added get request to search job postings by email in route.js

* Added delete request that handles deleting a job posting and removed unnecessary comment and console.log codes

* Added Patch request which updates any desired fields in the job posting colletion in route.js

* Removed unused import and removed unnecessary space

* Added get requests for site 1, 2, 3, and 4

* added demo code for admin panel UI

* added jsconfig and package.json

* updated website title

* Delete template code

* Added pagination feature to the get request in site1,2,3, and 4

* relocate admin panel UI files

* Created siteRequestUtils.js and moved the repeated codes in sites' route codes to it. Also, updated the site names specifically.

* Updated the database connection to handle it in singleton way

* Add Stripe Checkout #21

* intall mongoose and dotenv

* connected to DB and populated cards dynamically

* Removed database connection closing code to fix the connection error and added missing import NextResponse in siteRequestUtils

* separated icons UI

* added CSS for Card Title

* Removed search box

* Deleted unnecessary mongoDB connect

* Added job ID

* added functionality for trash button

* renamed to jobPostingId

* bug fixed: api fetch for delete

* Removed unnecessary error handling and fixed typo

* Added get request by Id for job posting

* Apply formatting changes

* Removed card from UI upon deleting

* Adding ESlint to GitHub actions to ensure code validity. It triggers on push and pull request (#32)

* Adding eslint to github actions (#31)

* Update main.yml

* adding eslint to the actions (#31)

* [Issue # 17] Job Posting CRUD API for Backend Service  (#19)

* Added mongoDB connection configuration

* Added a post request for job posting

* Added get request to search job postings by email in route.js

* Added delete request that handles deleting a job posting and removed unnecessary comment and console.log codes

* Added Patch request which updates any desired fields in the job posting colletion in route.js

* Removed unused import and removed unnecessary space

* Added get requests for site 1, 2, 3, and 4

* Added pagination feature to the get request in site1,2,3, and 4

* Created siteRequestUtils.js and moved the repeated codes in sites' route codes to it. Also, updated the site names specifically.

* Updated the database connection to handle it in singleton way

* Removed database connection closing code to fix the connection error and added missing import NextResponse in siteRequestUtils

* Removed unnecessary error handling and fixed typo

* Added get request by Id for job posting

* Apply formatting changes

---------

Co-authored-by: ama-cantabile <[email protected]>

* Added a function to get total number of job postings in siteRequestUtils.js

* Added get request that returns the total number of job postings for the four front-ends

* Added function that returns sorted job postings by date

* Added Get request that returns sorted job posting by date for disabled front-end

* Added Get request that returns sorted job posting by date for indigenous front-end

* Added Get request that returns sorted job posting by date for newcomers front-end

* Added Get request that returns sorted job posting by date for students front-end

* Added GetByEmail request that returns sorted job posting by date for admin paner front-end

* Modified sorting function that dynamically handles the sorting field and added a validation to check if the requested field exists or not in the collection

* Changed the folder directory name from sort-by-date to sort and modified the request to handle the sorting feature dynamically

* Changed the folder directory name from sort-by-date to sort and modified the request to handle the sorting feature dynamically for job posting front-ends

* Changed the folder directory name from sort-by-date to sort and modified the request to handle the sorting feature dynamically for admin panel

* Changed the query parameter key name to sort_by for the consistency

* Changed the function name to more general

* Update list of dependencies

* Remove default styling

* Add UserProvider component

* Add dynamic API route handler

* Add skeleton landing page with login/logout functionality

* added tailwind forms dependency

* added save job posting func

* Added get and get total posts request for a new asylum-refugees front-end (#37)

* Redirect to admin-panel home

* Add user to admin-panel

* Fetch user from auth0 api in home page

* added add posting form

* integrate add post api endpoint

* added add pot form in Home

* updated jobPageId req

* added styling for close button

* Apply formatting changes

* Added sorting api for asylum-refugees front-end

* display postings by date created

* sort by date created

* updated UI when new posting is added

* return postings IDs upon creation

* Refactored sorting so that the sorting is handeled at the same end point instead of having separate individual end points

* Added Id in the message to handle specifically in Admin panel side

* adjusted text area dynamically

* updated dependency

* Removed unused sort directoy in job posting

* Turn off strict mode

* Update stripe version

* Update stripe version

* Fix posting retrieval and rendering

* Added sorting in route.js for admin panel

* Update api url

* added dependency

---------

Co-authored-by: amamc <[email protected]>
Co-authored-by: mai-vu <[email protected]>
Co-authored-by: Alex Kong <[email protected]>
Co-authored-by: ama-cantabile <[email protected]>
Co-authored-by: Cassidy Boilley <[email protected]>
Co-authored-by: Amadeus Min <[email protected]>
Co-authored-by: SOO <[email protected]>
@Cassidy-Boilley Cassidy-Boilley deleted the feature/create-job-posting-api branch May 28, 2024 18:49
@Cassidy-Boilley Cassidy-Boilley restored the feature/create-job-posting-api branch May 28, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants