Skip to content

Latest commit

Β 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’— EvelynContact-API

A minimalist POST-only contact form backend built with Node.js, Express.js, and MongoDB β€” made to listen.

Because even an API should be capable of hearing you out. πŸͺ½


Features

  • POST-only endpoint: /api/contact
  • Accepts JSON payload:
  {
    "name": "Your Name",
    "email": "your@email.com",
    "message": "Your message"
  }
  • Saves messages to MongoDB
  • Input validation
  • Clean, modular structure (MVC)
  • Powered by intention πŸ–€

Tech Stack

● Node.js
● Express.js
● MongoDB (via Mongoose)
● dotenv
● Postman (for testing)

Preview Architecture

Project Structure POST Request

πŸƒ > Getting Started

  1. Clone the repo
git clone https://github.com/ricoaprillananda/EvelynContact-API.git
cd EvelynContact-API
  1. Install dependencies
npm install
  1. Add .env file

PORT=5000 MONGO_URI=your-mongodb-uri-here

  1. Run the server
npm run dev

API Testing (via Postman)


Method: POST

URL: http://localhost:5000/api/contact

Headers (pgsql):
Content-Type: application/json

Body (json):
{
  "name": "Rico",
  "email": "rico@evelynlove.com",
  "message": "EvelynContact is alive πŸ’—"
}

Philosophy

A form is not just an input. It’s a message. A whisper into the void, hoping someone listens. EvelynContact was built to listen.

About

A minimalist POST-only contact form API built with Node.js & MongoDB πŸ’—

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages