Socket
Book a DemoInstallSign in
Socket

@coolescoden/accounts

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coolescoden/accounts

A simple account system using expressjs and mongodb.

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

@coolescoden/accounts

A simple account system using expressjs and mongodb.

Installation

First you need to install MongoDB from here

Then you need to install @coolescoden/accounts with npm or yarn

  npm install @coolescoden/accounts
  # or
  yarn add @coolescoden/accounts

Usage/Examples

const express = require('express');
const {accounts} = require('@coolescoden/accounts');

const app = express();

accounts({
    app: app,
    basePath: "/api/v1",
    mongoUrl: "mongodb://localhost:27017/accounts",
    smtp: {
        host: "smtp.my-hostname.com",
        port: 587,
        secure: false,
        auth: {
            user: "my@website.com",
            pass: "MySeCuRePaSsWoRd"
        },
        displayName: "Sample Account System"
    }
})

app.listen(3000, () => {
    console.log("Server running on 3000")
})


Client for Web

There is a Client which you can use to execute tasks on the account system here

Authors

  • @MCTzOCK

FAQs

Package last updated on 16 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts