Skip to content

coolescoden/accounts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published