npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

maxsip-backend-test

v1.0.2

Published

This document provides documentation for the database, including information about the tables and their structures.

Downloads

1

Readme

Database Documentation

This document provides documentation for the database, including information about the tables and their structures.

Tables

Users Table

The Users table stores information about users.

Table Structures

Users Table

Creation

The construction of the table aligns with the constraints specified in the Affordable Connectivity Program - National Verify API Specifications document (v2.10) as much as reasonably possible. All columns directly correspond with properties that may be expected by that API except for userId which is internal to the database.

CREATE TABLE Users (
    userId INT IDENTITY(1,1) PRIMARY KEY,

    firstName NVARCHAR(50) NOT NULL,
    middleName NVARCHAR(50) NULL DEFAULT NULL,
    lastName NVARCHAR(50) NOT NULL,

    address NVARCHAR(100) NOT NULL,
    city NVARCHAR(50) NOT NULL,
    state NVARCHAR(2) NOT NULL,
    zipCode NVARCHAR(9) NOT NULL,
    CONSTRAINT zip_code CHECK (LEN(zipCode) = 5 OR LEN(zipCode) = 9),

    dob DATE NOT NULL,
    ssn4 CHAR(4) NOT NULL,
    CONSTRAINT UC_User_UniqueData UNIQUE (firstName, lastName, dob, ssn4),

    contactEmail NVARCHAR(100) NULL DEFAULT NULL,
    contactPhoneNumber CHAR(10) NULL DEFAULT NULL,

    bqpFirstName NVARCHAR(50) NULL DEFAULT NULL,
    bqpLastName NVARCHAR(50) NULL DEFAULT NULL,
    bqpDob DATE NULL DEFAULT NULL,
    bqpSsn4 CHAR(4) NULL DEFAULT NULL,

    eligibilityProgramCode NVARCHAR(50) NOT NULL,
);

Constraints

  • The combination of firstName, lastName, dob, and ssn4 identify a user and must be unique, enforced by the UC_User_UniqueData constraint.

Installing the backend locally as a node module

To use the maxsip-backend module as a package, follow these steps:

Installation

Local Installation

To install this module as a local dependency in another project you can use this script:

# Create a compressed package of the backend module
npm pack relative_path/to/module_dir
# Install the module in your project
npm i -s <module_name>-<module_version>.tgz
# Cleanup: Remove the generated .tgz file if no longer needed
rm <module_name>-<module_version>.tgz

For example, from a project at the same level as this module, and using the module name maxsip-backend and with a version set to 1.0.0 this would be:

npm pack ../maxsip-backend
npm i -s maxsip-backend-1.0.0.tgz
rm maxsip-backend-1.0.0.tgz

Imports

The module has 4 exports that can be imported from backend-client:

  1. User (Class) - sourced in User.ts
  2. IUser (TS type) - sourced in User.ts
  3. INewUser (TS type) - sourced in User.ts
  4. DbUtil (Class) - sourced in DbUtil.ts

For more information about the nature of these exports, refer to the source code on Github.

Configuration

The module manages configuration using the config package and reads in 3 values:

  1. db.server - The path for the azure DB server
  2. db.user - The user for the azure DB server
  3. db.name - The name for the azure DB
  4. db.password - The password for the azure DB

Installing the backend through Github as a node module