- ⚙️ Tech Stack
- 🔋 Features
- 🤸 Quick Start
- ✏️ Personalization
- 📄 License
- Next JS
- Tailwind CSS
- ✅ Password salt
- 🔄 DB session
- 🔄 Password reset
Follow these steps to set up the project locally on your machine.
Prerequisites
Make sure you have the following installed on your machine:
Cloning the Repository
git clone https://github.com/pietropeerani/next-mysql-auth.git
cd next-mysql-authInstallation
Install the project dependencies using npm:
npm iRunning the Project
npm run dev
npm run dev -- -H 0.0.0.0 -p 3000 # host development server on local networkOpen http://localhost:3000 in your browser to view the project.
Set Up Enviroment Variables
Go to @/next.config.mjs to modify the general info:
"env": {
"host": "",
"port": "3306",
"user": "",
"password": "",
"database": "",
"host_dev": "localhost",
"port_dev": "",
"user_dev": "root",
"password_dev": "",
"database_dev": "next-mysql-auth"
}Create the @/.env.local file to modify security info:
SESSION_SECRET="" # string for the cryptographyThis project is licensed under the MIT License - see the LICENSE file for details.
