Skip to content

pietropeerani/next-mysql-auth

Repository files navigation


Project Banner
next.js tailwindcss MySQL

🔒 Next Authentication 🔒

  1. ⚙️ Tech Stack
  2. 🔋 Features
  3. 🤸 Quick Start
  4. ✏️ Personalization
  5. 📄 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-auth

Installation

Install the project dependencies using npm:

npm i

Running the Project

npm run dev

npm run dev -- -H 0.0.0.0 -p 3000 # host development server on local network

Open 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 cryptography

Project Banner

This project is licensed under the MIT License - see the LICENSE file for details.

About

Simple mysql authentication for Next.js

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors