Giter VIP home page Giter VIP logo

lodge-v2's Introduction

Lodge

Getting Started

First, clone the repository:

git clone [email protected]:BryanBerger98/lodge-v2.git

Install dependencies:

npm i

Configure the environment variables by renaming .env.example by .env.local:

# Rename .env.local

# MONGODB CONFIG
DB_USER=
DB_PASSWORD=
DB_NAME=
DB_CLUSTER=

# EMAIL SERVER CONFIG
EMAIL_HOST=
EMAIL_PORT=
EMAIL_USER=
EMAIL_PASS=
EMAIL_FROM=

# SECURITY AND AUTH CONFIG
JWT_SECRET=
CSRF_SECRET=
FRONT_URL=
NEXTAUTH_URL=

# AWS S3 BUCKET CONFIG
BUCKET_NAME=
BUCKET_ACCESS_KEY_ID=
BUCKET_SECRET_ACCESS_KEY=
BUCKET_REGION=
BUCKET_POLICY_VERSION=

# APP NAME
APP_NAME=
NEXT_PUBLIC_APP_NAME=

# ENVIRONMENT
NEXT_PUBLIC_ENVIRONMENT=
ENVIRONMENT=

Finaly run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

lodge-v2's People

Contributors

bryanberger98 avatar semantic-release-bot avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

africademy

lodge-v2's Issues

2FA

Usage

  • 2FA with code provider app
  • 2FA with email
  • 2FA with phone number (needs an additional config in admin panel)

Settings

  • 2FA required

Email confirmation on sign up

  • Check if a token is already registered (delete if it is)
  • Check the date and time the token was created before creating a new one
  • Check if the user is already verified
  • Ask the user to confirm his email after signup

Suspend user

  • Notify user by email (let the admin choose this option)

Impersonate user

Usage

Temporarily sign in as a selected user

Settings

  • Allow admin role to impersonate user (admin cannot impersonate other admin, owner can impersonate everyone)

Multi accounts

Allow users to connect to multiple accounts at the same time

Refactor user session management

Create a custom context which handle the user session (should use the next auth useSession hook)

It should allows developers to access following features:

  • Access user account informations
  • Update user session
  • A can function to verify user permissions

Share admin settings

Owner role

  • Create a owner role.
  • Owner cannot be suspended
  • Owner cannot be edited by other roles
  • Owner cannot be deleted.

Share settings (owner only)

  • Share settings with admin
  • Give owner role to someone else (ask password)

Email magic link

Usage

Authentication without password, sending a login link to the email address of the user

Settings

  • Add authentication mode (allow admin to activate this feature)

Auth guard

  • Authentication guard
  • Email verification guard

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.