- User registration
- User Login
- Persisting user for 1 hour (can be changed)
- Changing Password
- MySQL
- Node.JS
- React.JS
-
Start MySQL Server.
$ sudo systemctl start mysql
- Run create-database.sql as root.
sudo mysql -u root -p < create-database.sql
- Create a user named
scot
and passwordtiger
. Grant all privileges on AuthTest database toscot
.
# These should be executed in mysql shell as root user CREATE USER 'scot'@'localhost' IDENTIFIED BY 'tiger'; GRANT ALL PRIVILEGES ON AuthTest.* TO 'scot'@'localhost'; FLUSH PRIVILEGES;
-
Install dependencies (in both server and client) as shown below.
$ cd server && yarn && cd ../client && yarn && cd ..
-
Start server and react dev server (as shown below).
$ cd server $ yarn run devStart