SecureAuth - Security Made Simple, Authentication Made Strong made with NextJS
(frontend and backend) and MongoDB
(database)
-
Clone the repository:
git clone git@github.com:Samya-S/SecureAuth.git
Make sure you have SSH keys setup in your machine
-
Navigate to the project directory:
cd secureauth
-
Install dependencies:
npm install
or alternatively
npm i
Make sure to have nodejs and npm installed
Create a .env
file and define the following environment variables:
mongoURI = '<your mongodb url>'
NEXT_PUBLIC_hostingDomain = '<your localhost domain>'
secretToken = '<a random secret token for jwt>'
Run the development server:
npm run dev
or
yarn dev
or
pnpm dev
or
bun dev