/react-jwt-auth

auth system with jwt and react

Primary LanguageJavaScriptMIT LicenseMIT

React Auth System With JWT

For more information about JWT

Techs 🚀

  • NodeJs
  • Express
  • JsonWebToken
  • MySQL
  • React
  • React Hooks

Start ▶️

Firstly install dependencies:

yarn install

and

cd client && yarn install

Add enviroment variables in .env file:

MYSQL_HNAME=
MYSQL_UNAME=
MYSQL_PWD=
MYSQL_DBNAME=
SECRET_KEY= (for create token)
HASH_KEY= (for crypto)

Start project (root folder):

yarn start

Docker 🐳

Build docker image and start (in project folder):

docker build -t react-jwt .

and

docker run -p 49160:8080 -d react-jwt

for more information about dockerizing