Git Product home page Git Product logo

script-health's Introduction

ScriptChain-Health

Screenshot 2023-06-17 at 12 17 21 Screenshot 2023-06-17 at 12 17 30
  • This webpage allows users to register their email address and receive a confirmation email containing their name.
  • The registration process is handled by a server-side application built with Node.js and MySQL, along with Nodemailer for sending emails.

Prerequisites

Before running the application, make sure you have the following prerequisites installed:

  • MySQL database
  • Gmail account (for sending confirmation emails)
  • Node.js

Installation

  • Clone the repository or download the source code.
  • Navigate to the project directory in your terminal.
  • Install the dependencies by running the following command: npm install

Configuration

  • Open the .env file in the project root directory.
  • Provide your MySQL database connection details:

DB_HOST=localhost DB_USER=your_database_user DB_PASSWORD=your_database_password DB_NAME=your_database_name

  • Provide your Gmail account details for sending confirmation emails:

[email protected] EMAIL_PASSWORD=your_email_password

Database Setup

  • Create a new database in your MySQL server with the name specified in the .env file.
  • Import the database.sql file located in the project root directory to set up the necessary table.

Usage

  • Start the application by running the following command: node server.js or npm start

  • Open your web browser and navigate to http://localhost:3000 to access the user registration webpage.

  • Fill in the registration form with your name and email address, then click the "Register" button.

  • If the registration is successful, you will see an alert message confirming the registration.

  • Check your email inbox for the confirmation email. It should contain your name and a confirmation message.

Troubleshooting

  • If you encounter any errors related to database connection or email sending, make sure your MySQL server is running and the provided database credentials are correct. Also, verify that your Gmail account settings allow less secure apps to access it.
  • If you want to customize the webpage or modify the server-side logic, refer to the source code files in the project directory.

script-health's People

Contributors

tharun-mamillapalli avatar

Watchers

 avatar

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.