Example react + node authentication app with jwt
- git clone https://github.com/thousandsofraccoons/node-react-auth
- cd node-react-auth
- Create a
.env
file in the server directory with this content
DB_HOST=localhost
DB_NAME=db
DB_PORT=27017
APP_PORT=1234
JWT_SECRET=55ha
- Create a
.env
file in the client directory with this content
REACT_APP_BACKEND=http://localhost:1234
npm install
for server and clientnpm start
for clientnpm run dev
for server