An open API service indexing awesome lists of open source software.

https://github.com/samya-s/secureauth

Security Made Simple, Authentication Made Strong using NextJS and MongoDB
https://github.com/samya-s/secureauth

auth authentication next nextjs secureauth

Last synced: about 2 months ago
JSON representation

Security Made Simple, Authentication Made Strong using NextJS and MongoDB

Awesome Lists containing this project

README

          

# SecureAuth

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

## Table of Contents

- [Installation](#installation)
- [Defining env variables](#defining-environment-variables)
- [Run dev environment](#run-dev-environment)

## Installation

1. Clone the repository:

```bash
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:

```bash
cd secureauth
```

3. Install dependencies:

```bash
npm install
```
or alternatively
```bash
npm i
```
`Make sure to have nodejs and npm installed`

## Defining environment variables

Create a `.env` file and define the following environment variables:

```bash
mongoURI = ''
NEXT_PUBLIC_hostingDomain = ''
secretToken = ''
```

## Run dev environment

Run the development server:

```bash
npm run dev
```
or
```bash
yarn dev
```
or
```bash
pnpm dev
```
or
```bash
bun dev
```