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

@grenmap-test/gren-map-visualization

v0.0.3

Published

This project is the visualization for the [GREN map](https://github.com/grenmap). The outputs of this project are embeddable files to be used on a webpage that wishes to display the GREN map.

Downloads

12

Readme

GREN Visualization

This project is the visualization for the GREN map. The outputs of this project are embeddable files to be used on a webpage that wishes to display the GREN map.

Prerequisites

This project requires node.js version 10 or higher to run. You can find node.js at this link.

Install dependencies

Before serving or building the application, run npm install to install all of the required node modules.

If you hit an ERR_OSSL_EVP_UNSUPPORTED then try running npm install --legacy-peer-deps. This is happening because default algorithm used by the application is not allowed in OPENSSL 3.0. Read more details.

Integrate Visualization with gren-map-db-node

Steps below allows to integrate the local changes made in the front-end application with the database:

Run the command npm run bundle. This command triggers the bundling process, which creates a gren-map-visualization folder containing the necessary files for deployment. There will be a package.json file and subfolders for the locales: en (English), fr (French) and so on.

Once the gren-map-visualization folder is generated, make a copy of it. Deploy instance of gren-map-db-node and replace the existing folder in gren-map-db-node django/staticfiles/gren-map-visualization/ with the copied gren-map-visualization folder. This step ensures that the updated front-end files are used for integration with the database.

Deploy Visualization map

The provided code snippet starts a local development server for the application.

Running the command npm run-script start initiates this server, and you can access the application by navigating to the specified URL, http://localhost:4200/, in your web browser. The application automatically reloads whenever you modify any of the source files, facilitating an efficient development workflow.

Development

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run npm run-script build to build the project. The built project will be stored in the dist/ directory. The build command will automatically build for production.

Bundle

This project is meant to be embedded on a webpage. To generate the files needed to embed this project on a page, as well as a working example file, run npm run-script bundle. For more information on how the bundling works, please refer to bundling.md

Running unit tests

Run npm run-script test to execute the unit tests via Karma.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.