For more information about JWT
- NodeJs
- Express
- JsonWebToken
- MySQL
- React
- React Hooks
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
Build docker image and start (in project folder):
docker build -t react-jwt .
and
docker run -p 49160:8080 -d react-jwt