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

csn-aws-provisioner

v0.0.2

Published

CSN Provisioner for Amazon Web Services

Downloads

4

Readme

AWS CSN Provisioning

The AWS CSN Provisioning handles Cloud Service Network deployment in Amazon Web Services. This services heavily relies on external libraries (alkira-node-libs) to manage the lifecycle of CSN, Nodes & Peering.

This app is based on NodeJS (ExpressJS) and uses etcd as the primary storage backend. This service optionally uses Kafka to process incoming requests and propagate events to other services.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Prior to running this project on your personal computer, you will need to install Node. Version > 8 is recommended.

Running locally (dev)

First, we need to resolve all NodeJS dependencies,

npm install

Then, we can run the application locally in dev mode (NODE_ENV=dev), make sure port 3000 is not used by another application

NODE_ENV=dev node index.js

Building the project

The application is bundled as a docker container, as such you can use the following line to build it:

docker build . -t csn-aws-provisioning

Once built, you can use the created image to start an instance of the application.

When built, the webserver will automatically start in production mode, as such you need to point it to an existing mongoDB database

Deployment

The deployment of application is currently handled by Helm and the CI server by using a pipeline.

The configuration of the application can be updated in docker-compose.yml by passing the necessary environment variables. The list of supported environment variables is:

  • PORT: Port the application is running on | default: 3000
  • ENVIRONMENT: Define the environment in which the service is running (dev, review, staging, production, ...) | No default
  • NAMESPACE: Only required when running in review mode where multiple services are deployed on the same Kubernetes cluster | No default
  • ETCD_HOST: ETCD endpoint FQDN (myetcd.alkira.net) | default: localhost
  • ETCD_PORT: ETCD endpoint port information | default: 2379
  • INTERNAL_KAFKA_BROKERS: Full kafka brokers URL (mybroker01.alkira.net:9092:mybroker02.alkira.net:9092), takes KAFKA_HOST and KAFKA_PORT precedence | default: localhost:9092
  • KAFKA_HOST: Kafka endpoint FQDN, only if behind a load balancer (for bootstrap, brokers will be discovered by client) | default: localhost
  • KAFKA_PORT: Kafka endpoint Port, only if behind a load balancer (for bootstrap, brokers will be discovered by client) | default: 9092
  • AWS_ACCESS_KEY_ID: AWS Access Key used to manage CSN | No default
  • AWS_SECRET_ACCESS_KEY: AWS Secret Key used to manage CSN| No default

Environment variables for feature flags:

  • ENABLE_AUTHORIZATION: if true, REST endpoint will enforce JWT authorization | default: false
  • ENABLE_EVENT_NOTIFICATIONS: if true, generate events to Kafka on CSN or Node lifecycle | default: false
  • ENABLE_EVENT_TRIGGERS: if true, listens to Kafka to process CSN/Node CRUD operations | default: false

License

This project is licensed under the Apache License - see the LICENSE.md file for details