Skip to content

Latest commit

 

History

History
65 lines (49 loc) · 1.09 KB

File metadata and controls

65 lines (49 loc) · 1.09 KB

SecureAuth

SecureAuth - Security Made Simple, Authentication Made Strong made with NextJS (frontend and backend) and MongoDB (database)

Table of Contents

Installation

  1. Clone the repository:

    git clone git@github.com:Samya-S/SecureAuth.git

    Make sure you have SSH keys setup in your machine

  2. Navigate to the project directory:

    cd secureauth
  3. Install dependencies:

    npm install

    or alternatively

    npm i

    Make sure to have nodejs and npm installed

Defining environment variables

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 dev environment

Run the development server:

npm run dev

or

yarn dev

or

pnpm dev

or

bun dev