{"id":48590242,"url":"https://github.com/sutharsansparkz/sutharsan-backend","last_synced_at":"2026-04-08T19:03:00.529Z","repository":{"id":183225729,"uuid":"669789388","full_name":"sutharsansparkz/sutharsan-backend","owner":"sutharsansparkz","description":"This is the backend code for your portfolio application.","archived":false,"fork":false,"pushed_at":"2024-04-13T18:30:48.000Z","size":117,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-08T18:38:48.766Z","etag":null,"topics":["expressjs","github","mongodb","nodejs"],"latest_commit_sha":null,"homepage":"https://backend-peach-phi.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sutharsansparkz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-07-23T12:41:14.000Z","updated_at":"2025-11-10T16:19:25.000Z","dependencies_parsed_at":"2023-07-23T14:37:13.740Z","dependency_job_id":"adf231ee-6b61-48ed-84ff-393e6de66bc6","html_url":"https://github.com/sutharsansparkz/sutharsan-backend","commit_stats":null,"previous_names":["sparkz-technology/sutharsan-backend","sutharsansparkz/sutharsan-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sutharsansparkz/sutharsan-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sutharsansparkz%2Fsutharsan-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sutharsansparkz%2Fsutharsan-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sutharsansparkz%2Fsutharsan-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sutharsansparkz%2Fsutharsan-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sutharsansparkz","download_url":"https://codeload.github.com/sutharsansparkz/sutharsan-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sutharsansparkz%2Fsutharsan-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31569400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["expressjs","github","mongodb","nodejs"],"created_at":"2026-04-08T19:02:35.532Z","updated_at":"2026-04-08T19:03:00.507Z","avatar_url":"https://github.com/sutharsansparkz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"sutharsan-backend\n\n# Portfolio Backend\n\nThis is the backend code for your portfolio application. It enables users to send messages to you through a contact form. The backend is built using Express and Nodemailer libraries for handling email sending.\n\n## Setup\n\n1. Install the required dependencies by running `npm install` in your project directory.\n2. Create a `.env` file in the project's root directory with the following environment variables:\n\n```\nEMAIL=your_email@gmail.com\nPASSWORD=your_email_password\nYOUR_EMAIL=your_email_to_receive_messages@gmail.com\n```\n\nReplace `your_email@gmail.com`, `your_email_password`, and `your_email_to_receive_messages@gmail.com` with your actual email credentials and the email address where you want to receive messages.\n\n## Running the Server\n\nStart the backend server by running `node app.js` or `npm start` in the terminal. The server will be accessible at the specified port (usually port 3000 by default).\n\n## API Endpoint\n\n### POST /form\n\n**Description:** This endpoint receives a POST request with data containing the sender's name (`fName`) and the message (`message`). The server sends an email using Nodemailer to the specified recipient (your email address). If the email is sent successfully, it returns a `200` status with a success message; otherwise, it returns a `500` status with an error message.\n\n**Request Payload:**\n\n```json\n{\n  \"fName\": \"sparkz\",\n  \"message\": \"Hello, this is a test message!\"\n}\n```\n\n**Response (Success):**\n\n```json\n{\n  \"success\": \"Email sent successfully\"\n}\n```\n\n**Response (Error):**\n\n```json\n{\n  \"error\": \"Something went wrong.\"\n}\n```\n\n// Path: sutharsan-backend/app.js\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsutharsansparkz%2Fsutharsan-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsutharsansparkz%2Fsutharsan-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsutharsansparkz%2Fsutharsan-backend/lists"}