This is a full-stack authentication system built with the following technologies:
Click this Link : https://auth-system-sigma.vercel.app
Ensure you have the following installed on your system:
Follow these steps to set up the project on your local machine.
git clone https://github.com/KartikLakhotiya/Auth-System.git
cd auth-system
Go into the backend directory and install the dependencies.
cd backend
npm install
Create a .env file in the root directory of backend folder and add the following variables.
PORT = 5000
MONGO_URI = "your_mongo_db_url"
JWT_SECRET = "your_jwt_secret"
NODE_ENV = development
MAILTRAP_TOKEN = "your_mailtrap_token"
MAILTRAP_ENDPOINT = https://send.api.mailtrap.io/api/send
CLIENT_URL = http://localhost:5173
Go into the frontend directory and install the dependencies.
cd frontend
npm install
To run the backend server go into the backend directory and run the following command
npm run dev
To run the frontend server go into the frontend directory and run the following command
npm run dev
The backend server will run at http://localhost:5000
and the frontend server will run at http://localhost:5173
.
This project has been successfully deployed online as I have a registered domain. However, if you do not have a domain, please be aware that Mailtrap only allows sending emails to accounts associated with your Mailtrap account. As a result, deploying this project without a registered domain may not make sense, since you won’t be able to send emails to other users.
If you have a domain, feel free to deploy the project to leverage its full email functionality!
Feel free to open issues and submit pull requests. Any contributions are appreciated!