Skip to content

Latest commit

 

History

History
62 lines (41 loc) · 761 Bytes

README.md

File metadata and controls

62 lines (41 loc) · 761 Bytes

express-mongo-auth

Schemas

User Schema

{
    username: {
        type: String,
        index: true,
        unique: true
    },
    password: {
        type: String
    },
    role: {
        type: String,
        enum: ['ADMIN', 'COMMON']
    },
}

Data Seeder

Here are the data that already exist when running this project.

ADMIN
username = admin
password = admin

USER
username = user
password = user

Diagrams

Login Flow

Login Flow

CRUD Flow

CRUD Flow

Kubernetes

Deployed Well

K8s

Test Endpoint

API

API Docs

Postman Collection