User account creation page made with Next.js, Material-ui, Serverless and MySQL.
To see all the created users, you must enter with the administrator account (user: admin, password: admin)
before starting make sure to have installed:
- make
- docker (to create a local db)
- node
- in ./mysql directory run
make docker-buld
- once the image has been built run
make docker-start
(when you want to stop docker just run make docker-stop
)
- in ./app directory run
npm i
- then run
npm run dev
- enter to localhost:3000
you can set up your own environment just create an .env.build file at the root and add the following variables
MYSQL_HOST=[your_sql_host]
MYSQL_DATABASE=[your_sql_database_name]
MYSQL_USER=[your_db_user]
MYSQL_PASSWORD=[your_db_password]
JWT_SECRET_KEY=[key_to_sign_authorization_token]
JWT_DURATION=[duration_of_token] # a number of seconds or string representing a timespan eg: "1d", "20h", 60.
SALT_ROUNDS=[salt_rounds_to_encrypt_passwords_bycript]