GithubHelp home page GithubHelp logo

nishayo / contact-me Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 222 KB

This is fully functional contact form made using MERN stack and docker.

HTML 13.87% CSS 19.27% JavaScript 49.19% SCSS 15.86% Dockerfile 1.81%
hacktoberfest

contact-me's Introduction

Contact Form Web Application

Contact Form

Steps for Local Setup

  1. Clone the Repository:

    git clone https://github.com/nishaYO/contact-me.git
  2. Run Installation Commands:

    cd client
    npm install
    cd ../server
    npm install
  3. Create .env File in Root Directory:

    cd ..
    touch .env
  4. Enter MongoDB Connection Details in .env:

    MONGO_URI=MONGO_URI=mongodb+srv://<username>:<password>@<server-address>.mongodb.net/<database-name>?retryWrites=true&w=majority
    MONGO_USERNAME=<username>
    MONGO_PASSWORD=<passowrd>
    
  5. Open Docker Desktop

  6. Run Containers:

    docker-compose up -d
  7. Stop Running Containers: If you've finished exploring the codebase, gracefully stop the running containers using:

    docker-compose down

Technologies Used

  • MongoDB
  • Node.js
  • Express.js
  • React
  • SCSS
  • Docker

How It Works

  1. User inputs data in the contact form.
  2. Frontend performs input validation.
  3. POST request with inputs sent to the backend (localhost:5000) in JSON format.
  4. Backend performs input validation.
  5. JSON parsing on inputs.
  6. Document created using inputs and saved in MongoDB.
  7. If any errors, response with a 500 status code sent to the frontend.
  8. Success message sent to the frontend on successful submission.
  9. User notified of errors or successful submission.

contact-me's People

Contributors

nishayo avatar

Watchers

 avatar

Forkers

mariahlaqua

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.