Coder Social home page Coder Social logo

nully0x / email-confirmation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shahaadesh5/email-confirmation

0.0 0.0 0.0 642 KB

MEAN stack application to send email confirmation on creating an account and allowing user to log in only if email confirmation is done by clicking on the confirmation link received in their email

JavaScript 25.74% TypeScript 65.38% CSS 2.83% HTML 6.04%

email-confirmation's Introduction

Email-Confirmation using MEAN stack

A MEAN stack application to send email confirmation on creating an account and allowing user to log in only if email confirmation is done by clicking on the confirmation link received in their email

Server side configurations:

Using Node.js and Express as a framework for the server along with MongoDB Atlas as the database. You can create a free cluster here - https://www.mongodb.com/cloud/atlas

Get MongoDB Atlas cluster credentials and connection string to be used for connecting with the app. Get details about it here - https://docs.atlas.mongodb.com/connect-to-cluster/#connect-to-a-cluster

For sending mail, we're using NodeMailer package. You can find the documentation for it over here - https://nodemailer.com/usage/

Backend process

  • Switch into backend folder and run 'npm install' command to install the required packages (express, mongoose, nodemailer etc.)
  • Server runs on port 3000
  • Get your MongoDB Atlas credentials and string and put it in app.js in the mongoose.connect method
  • Input your email account credentials (GMAIL preferred) in api/routes/user.js file under the POST request.
  • For running the server, run the command 'node server.js' inside the backend folder

Frontend configurations:

We're using the following package:

Frontend process

  • Switch to frontend folder and run 'npm install' command to install the required packages
  • Client runs on port 4200
  • For running the client, run the command 'ng serve' inside the frontend folder and view the applicaion in browser by vising http://localhost:4200

Make sure both client (frontend) and server (backend) are running simultaneously

Note: This application does not save passwords in encrypted form. For real world projects or for practice please save passwords in encrypted form for security.

email-confirmation's People

Contributors

shahaadesh5 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.