1.0.0 • Published 3 years ago
@piravin.kcm/easy-auth v1.0.0
Easy Auth
This project is aimed at building a npm-package that will easing out the process of setting up authentication when building a new node.js application.
Setup
- clone the repository
- run
npm install
- run
npm run test
and make sure all the test cases pass
Steps to contribute
- fork the repository
- create an issue on which you'll be working on (use a different branche with issue name/no as branch name)
- make a pull request and I'll merge them once tested
- AND don't forget to build those unit test cases with your favourite framework (I'm using jest)
Overview
- The project consists of an index.ts file which will used to setup the configurations.
- Currently I've built it to work on mongodb but the code is modular in a way that database queries can be separated from the application logic. The
DbAdapters
directory contains programme which makes this possible. Feel free to add support to your favourite database. - Basic functions required for authentication are contained in
functions
directory.
1.0.0
3 years ago