ganshul34 / LoginExample

A simple example of login and registeration validated via api in node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User Registration and Login functionality using MERN Stack

UI

In the project directory, you can run:

Quick Start

// Install dependencies
npm install or yarn install

//start the client
npm start or yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

API

Checkout to api directory then you can run:

nodemon server

Runs the node server and page will reload if you make any edits

Database

`mongodb+srv://username:@cluster0-gjn0o.mongodb.net/test?retryWrites=true&w=majority


Place the above code in DB file in api directory

Replace the username and password with the credentials generated on the cloud

This will connect to the mongodb service on the cloud

About

A simple example of login and registeration validated via api in node


Languages

Language:JavaScript 93.9%Language:CSS 3.6%Language:HTML 2.5%