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

contactus-indilabs-component

v1.0.1

Published

The idea is that you can download this project to use and adapt it for any project in node.js with:- * Auth(Login and Register) Component. * Mail Component. * Notification Component.

Downloads

9

Readme

Indielabs Components

The idea is that you can download this project to use and adapt it for any project in node.js with:-

  • Auth(Login and Register) Component.
  • Mail Component.
  • Notification Component.

Instalation

npm install

Run app

npm start /
npm run dev

node and mongodb should be installed

Dependencies

Following packages are used

  • body-parser (for parsing incoming requests)
  • express (to make the application run)
  • nodemon (restarting server when changes occur)
  • mongoose (object data modeling to simplify interactions with MongoDB)
  • bcrypt (for hashing and salting passwords)
  • express session (to handle sessions)
  • connect-mongo (for storing sessions in MongoDB)
  • passport (for token generation)
  • web-push (for notification)
  • express-session (for session middleware )

Test system using this routes

/ ... root for notification test /auth ... for auth page which will lead to login and register /contact ... for contacus form

Components Structure

Auth/Login Components :zap: ContacusEmail Component :mailbox: Notification Component :bell:

  • app
    • models

      • user.js --# our user model #-- :zap:
    • Controllers

      • user.js --# will register and login user // action methods #-- :zap:
      • contact.js --# will send mail // action method #-- :mailbox:
    • config

      • index.js --# will hold our database connection settings #--
      • passport.js --# configuring the strategies for passport #-- :zap:
    • libs

      • auth.js --# will hold middlewares for guest and authenctaed #-- :zap:
      • db-connection.js --# configuring db connection #--
    • routes

      • index.js --# will hold all the routes with some login for notification#-- :mailbox: :bell:
      • user.js --# will hold user routes #-- :zap:
    • public

      • css --# css#--
      • client --# will hold notification controll #--
        • client.js --# will Register serviceWorker, Register Push browser api, send push notification #-- :bell:
        • worker.js --# waitinig for event push to assign values on the fly #-- :bell:
        • html.html --# show notification simple text #-- :bell:
    • views

      • index.ejs --# show our home page with login links #--
      • contact.ejs --# show our login form #--
      • auth --# auth vieews folder #--
        • login.ejs --# show our login form #--
        • register.ejs --# show our signup form #--
        • secret.ejs --# show after login page #--
      • partials --# layout partials #--
        • footer.ejs --# footer section #--
        • header.ejs --# header section #--
    • package.json --# handle our npm packages #--

    • app.js --# Do the magic -- setup our application #--

Components Resulets

Image of users


Image of notification1


Image of mail


Image of mail2

Author

Abdelrhman

Why

  • Creating Components so that it be easy to integrate it with an App
  • For .. Indielabs