Backend Functionality for the contact us form. #126
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR implements the backend functionality requested for the contact us form. When the contact us form is submitted an email is sent to the email addresses that have been added to the subscribers list on admin panel. ( Please check the attached images below.)
The PR mainly consists of 2 main sub projects.
Frontend deployed at - https://fervent-payne-44a282.netlify.app
Backend deployed at - https://coders-evoke-contactus.herokuapp.com
Postman collection containing the set of endpoints used - https://documenter.getpostman.com/view/7312043/TzsZrTnt
Both the frontend and the backend is currently being deployed off of my origin repositories main branch(https://github.com/AuraOfDivinity/CodersEvoke_website). You will have to separately deploy it from the main branch of the coders evoke remote repository for the changes from other contributors to be reflected.
Fixes # (issue no.)
#103
Type of change
Explain the Testing instructions
Make sure to pull all the changes before testing.
Testing the backend server locally
Testing the frontend locally
Note - By default the base url of all the endpoints are hardcoded to fetch from the backend deployed at(https://coders-evoke-contactus.herokuapp.com) To change this update the endpoints that are found under the /services folder.
Test Configuration:
Checklist:
ATTACH SCREEN-SHOTS / DEPLOYMENT LINK
Frontend deployed at - https://fervent-payne-44a282.netlify.app
Backend deployed at - https://coders-evoke-contactus.herokuapp.com
Admin credentials for frontend-
Email - [email protected]
password - Admin123
Logging into the admin panel and adding new email to the receiver's list.
Creating a new contact us submission.(Note that the email is sent to the addresses we added to the current subscriptions list in the previous step. The content of the submission is also visible in the dashboard)