1.0.0 • Published 2 years ago

@coolescoden/accounts v1.0.0

Weekly downloads
-
License
GPL-3.0-only
Repository
-
Last release
2 years ago

@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