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

create-angular-auth-nav

v1.0.3

Published

A CLI tool to scaffold an Angular application with authentication and navigation features pre-configured.

Downloads

8

Readme

Create a Fullstack* Angular Auth Navigation Project

This CLI tool, npx create-angular-auth-nav provides a template for quickly setting up an Angular application with register/login functionality, utilizing Express, Passport and Bcrypt for encryption and basic navigation between pages. It incorporates TailwindCSS for its modern and responsive styling.

Register Page Login Page

Features

  • Register/Login functionality with basic client-side validation.
  • Passport.js for handling user authentication with flexible and modular middleware for Node.js.
  • Bcrypt for password security with automatic salt generation and hashing to protect against attacks.
  • Navigation bar with access to Home, About, and Contact pages.
  • User credentials stored in local storage for demonstration purposes, with the option to connect to any database of choice.
  • TailwindCSS integration for a sleek, responsive user interface design.

Using the Template

To get started with this template, you can clone the repository or use a CLI tool to create a new project:

npx create-angular-auth-nav

Installation and Running the Project

This project is organized into separate frontend and backend directories, promoting a clean separation of concerns.

Running both frontend and server from the root folder

This requires the "concurrently" package:

  • Run npm install to install all dependencies.
  • Execute npm start to boot up both frontend and backend servers.
  • Access the application at http://localhost:4200 (default Angular port).
  • Register and login with user credentials, which are stored in local storage (switch to a database for production use).

Running frontend and backend separately

Backend Setup

  • Navigate to the backend directory with cd backend.
  • Install dependencies with npm install.
  • Start the server with node server.js or nodemon server.js.

Frontend Setup

  • Navigate to the frontend directory with cd frontend.
  • Install dependencies with npm install.
  • Start the Angular server with ng serve.
  • Access the application at http://localhost:4200.
  • Register a user, credentials will be stored in local storage this should not be used in production, for production connect to any database of your choice
  • Login with the user you just registered and modify the app as you desire

Customization

Database Integration

While user credentials are stored in local storage for demonstration, production applications should use a secure database. The backend can be modified to integrate with databases such as MongoDB, PostgreSQL, Firebase, etc.

TailwindCSS Customization

Customize the appearance of the frontend by modifying the tailwind.config.js file. Refer to the official TailwindCSS documentation for detailed instructions.

Contribution

Contributions are welcome! Feel free to suggest improvements, report issues, or submit pull requests on GitHub.

License

This template is open source, licensed under the MIT License. See the LICENSE file for more details.

CREATE-ANGULAR-AUTH
├── backend
│ ├── index.js
│ ├── package-lock.json
│ └── package.json
└── frontend
├── .angular
├── .vscode
├── node_modules
├── src
│ ├── app
│ │ ├── components
│ │ │ ├── about
│ │ │ ├── contact
│ │ │ ├── footer
│ │ │ ├── header
│ │ │ ├── home
│ │ │ ├── login
│ │ │ ├── navigation
│ │ │ └── register
│ │ ├── guards
│ │ │ └── auth.guard.ts
│ │ ├── services
│ │ ├── app-routing.module.ts
│ │ ├── app.component.html
│ │ ├── app.component.spec.ts
│ │ ├── app.component.ts
│ │ └── app.module.ts
│ ├── assets
│ ├── environments
│ │ ├── environment.ts
│ ├── index.html
│ ├── main.ts
│ └── styles.css
├── .editorconfig
├── .gitignore
├── angular.json
├── package-lock.json
├── package.json
├── README.md
├── tsconfig.app.json
├── tsconfig.json
└── tsconfig.spec.json

App

Home Page Home Page Home Page Register Page Login Page

Disclaimer:

This project, create-angular-auth-nav, is provided as-is without any warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. The use of create-angular-auth-nav is entirely at your own risk. The author(s) or contributors shall not be liable for any damages, including but not limited to direct, indirect, incidental, special, consequential, or punitive damages arising out of or in connection with your access to, use of, or reliance on this project. By using create-angular-auth-nav, you agree to this disclaimer and acknowledge that the project is offered freely for use, modification, and distribution under its specified MIT license, without any obligation for support, maintenance, or updates.

*Database is missing from this app as this depends on user's needs.