codemzy / mern-auth

Full stack auth with Node, Express, Mongo and React using JWT
7 stars 2 forks source link
 ______     ______     _____     ______     __    __     ______     __  __    
/\  ___\   /\  __ \   /\  __-.  /\  ___\   /\ "-./  \   /\___  \   /\ \_\ \   
\ \ \____  \ \ \/\ \  \ \ \/\ \ \ \  __\   \ \ \-./\ \  \/_/  /__  \ \____ \  
 \ \_____\  \ \_____\  \ \____-  \ \_____\  \ \_\ \ \_\   /\_____\  \/\_____\ 
  \/_____/   \/_____/   \/____/   \/_____/   \/_/  \/_/   \/_____/   \/_____/
------------------------------------------------------------------------------ 

Full Stack Auth with MERN and JWT Tokens

Register an account, log in and log out.

Get Started:

  1. Create a private folder at the same directory level as the repo (outside the repo)

    /private  
    /mern-auth  
      - /app  
      - /public  
      - /server 
  2. Create your .env file within the private directory and include

    • PORT= optional,
    • MONGO_URL= for your DB connection,
    • SECRET_STR= for your JWT (server/services/passport)
    • SPARKPOST_KEY= for sparkpost (server/services/sparkpost)