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 🙏

© 2025 – Pkg Stats / Ryan Hefner

dilvant-app-builder-api

v1.0.0

Published

api

Readme

Cambios, en la rama Break

El login tiene dos formator, UserSchema -> Profesionales, UserAppSchema - Buyers

[ Angular2 Updated to 2.1.0 ]

MEA2N - ExpressJS, MongoDB, Gulp and Typescript (Repository Pattern)

##Introduction

Basic Angular seed application based on Quick start application (Tour of Heroes) given on angular website. It uses ExpressJS along with Mongo DB support (Mongoose) via a wrapper of Repository Pattern as Business layer. It also uses Gulp for running task and TsLint. It uses Pug and Sass to implement HTML templates and CSS styles as well. The seed application is built over node and uses latest node packages.

Prerequisites

  1. Latest version of Node to be installed.
  2. Install MongoDB and make sure it is running on default port 27017 (if not then please configure constants.ts and change the connection for mongoDB).

Steps to Run

    npm install          <= install all the npm Dependencies
    npm run build        <= build client and server application.
    npm run start        <= start the Nodemon and watch for changes.

Global packages

    npm install ts-node -g
    npm install typescript-node -g

Directory Structure

angular2-MEAN
    ├── node_modules
    ├── client
    │    ├── app
    │    │    ├── components
    │    │    │    ├── dashboard
    │    │    │    │    ├── dashboard.component.scss
    │    │    │    │    ├── dashboard.component.pug
    │    │    │    │    ├── dashboard.component.ts
    │    │    │    ├── user-detail
    │    │    │    │    ├── user-detail.component.scss
    │    │    │    │    ├── user-detail.component.pug
    │    │    │    │    ├── user-detail.component.ts
    │    │    │    ├── users
    │    │    │    │    ├── users.component.scss
    │    │    │    │    ├── users.component.pug
    │    │    │    │    ├── users.component.ts
    │    │    ├── models
    │    │    │    ├── user.ts
    │    │    ├── services
    │    │    │    ├── user.service.ts              <= User Service for fetching api
    │    │    ├── app.pug
    │    │    ├── app.component.scss
    │    │    ├── app.component.ts
    │    │    ├── app.module.ts
    │    │    ├── app.routing.ts
    │    │    ├── main.ts
    │    ├── index.pug
    │    ├── systemjs.config.ts
    │    ├── tsconfig.json
    ├── server
    │    ├── app
    │    │    ├── 0.crosswalk
    │    │    │    ├── common
    │    │    │    │    ├── interfaces
    │    │    │    │    ├── utils
    │    │    │    │    │    ├── Crypto.ts
    │    │    │    │    │    ├── JWT.ts
    │    │    │    │    │    ├── PlaceLookup.ts
    │    │    │    │    │    ├── StringFormatter.ts
    │    │    │    ├── config
    │    │    │    │    ├── routes
    │    │    │    │    │    ├── BaseRoutes.ts           <= fetching all appliction routes here
    │    │    │    │    │    ├── UserRoutes.ts           <= User API Routes like get, post, put, delete
    │    │    │    │    ├── sockets
    │    │    │    │    ├── Constants.ts                 <= Constants - mongodb connection string and app environment.
    │    │    │    │    ├── Express.ts                   <= Express - express configuration and initialization.
    │    │    │    │    ├── Passport.ts
    │    │    │    │    ├── Routing.ts                   <= Routing - routing initialization.
    │    │    │    │    ├── Sockets.ts
    │    │    ├── 1.controllers
    │    │    │    ├── interfaces
    │    │    │    |    ├── common
    │    │    │    |    |    ├── IBaseController.ts <= Base Repository controller
    │    │    │    │    |    ├── IReadController.ts
    │    │    │    │    |    ├── IWriteController.ts
    │    │    │    ├── UserController.ts
    │    │    ├── 2.models
    │    │    │    ├── interfaces
    │    │    │    │    ├── IUserModel.ts
    │    │    │    ├── UserModel.ts
    │    │    ├── 3.business                        <= business logic for application
    │    │    │    ├── interfaces
    │    │    │    |    ├── common
    │    │    │    |    |    ├── IBaseBusiness.ts
    │    │    │    |    │    ├── IReadBusiness.ts   <= common Read method
    │    │    │    |    │    ├── IWriteBusiness.ts  <= common Write method
    │    │    │    │    ├── IUserBusiness.ts
    │    │    │    ├── UserBusiness.ts
    │    │    ├── 4.repositories
    │    │    │    ├── interfaces
    │    │    │    │    ├── IReadRepository.ts
    │    │    │    │    ├── IWriteRepository.ts
    │    │    │    ├── BaseRepository.ts
    │    │    │    ├── UserRepository.ts
    │    │    ├── 5.dataAccess
    │    │    │    ├── schemas
    │    │    │    │    ├── UserSchema.ts           <= User Schema for MongoDB
    │    │    │    ├── DataAccess.ts                <= Connection with MongoDB
    │    │    ├── server.ts
    │    ├── tsconfig.json
    ├── gulpfile.ts                                 <= gulp tasks: clean, build, compile, run.
    ├── LICENSE
    ├── package.json
    ├── Procfile
    ├── README.md
    ├── tsconfig.json
    ├── tslint.json

Features (Angular2, Express, Gulp, MongoDB, Node, Pug, Sass)

  1. Angular 2 Quick Start application based on (Tours of Heroes) from https://angular.io/docs/ts/latest/quickstart.html
  2. Added support for Gulp so that js files are moved out of the app folder.
  3. It will create a dist folder where it will place all the js files.
  4. Gulp will monitor for the changes via help of watcher.
  5. Created folder structure for easy access of components, services and models.
  6. Implemented Pug and Sass for HTML templates and CSS styles.
  7. Applied tslint for avoiding any typos.
  8. Implemented best practices recomended on the Angular 2 website.
  9. Implemented Express Server to Host API's
  10. Added MongoDB support to communicate our Users data to Database
  11. Implemented Repository Pattern to communicate with Mongoose.

Api Document (from MongoDB)

1. getAll    http://localhost:3000/api/users             <= get all users
1. getById   http://localhost:3000/api/users/:id         <= get user by Id
2. post      http://localhost:3000/api/users             <= create user
2. put       http://localhost:3000/api/users/:id         <= update user
2. delete    http://localhost:3000/api/users/:id         <= delete user

Dependencies

  1. Angular 2
  2. TypeScript
  3. Gulp
  4. ExpressJS
  5. NodeJS
  6. Nodemon
  7. TsLint
  8. MongoDB
  9. Pug
  10. Sass

License

MIT