This is a boilerplate for MERN Authentication that stores JWT in an HTTP-Only cookie. It alo uses Redux Toolikt + Email Verification(Nodemailer) while creating new accounts + forgot&reset password functionnality
- Clone this repo
git clone https://github.com/BenMradB/MERN_AUTH.git
- Open to the
MERN_AUTH
project and type this command to install the necessary dependencies
npm i
- Move to the
frontend
folder to install the necessary dependencies
cd frontend
npm i
- To run only the
server
side you have to be located in theMERN_AUTH
folder then run this command
npm run server
- To run only the
client
side you have to be located in theMERN_AUTH
folder then run this command
npm run client
- To run both the
client
&server
side you have to be located in theMERN_AUTH
folder then run this command
npm run dev