This gist contains the code to create a code for User Authentication with React & Express.
First, fork this gist to your own account by clicking the fork symbol in the upper right.
Then copy the clone URL to your clipboard.
-
Run
npm install
to install all the dependencies & devDependencies. -
Run
npm run start-dev
to start the server. This will start both Express server and Webpack server for react.
At localhost:3000/login, you'll see a page like below-
At localhost:3000/signup, you'll see a page like below-
Try submitting the forms without filling the fields. You'll see respective errors.
And you'll be good to go 👍