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-node-app

v1.4.4

Published

Create Node.js apps by running one command

Downloads

249

Readme

Create Node App CircleCI npm version

Create modern Node.js apps with no build configuration. In a single command, this tool bootstraps a React + Express app and a Postgres Docker container. Created apps closely follow The Twelve Factors of web application development. Inspired by and based on create-react-app.

Terminal Example

Quick start

Creating an App

npx create-node-app my-app
cd my-app
npm start

Creates a new repository and starts a React frontend, an Express backend, and a container for Postgres locally

Deploying to Production

npm run deploy

Containerizes your app and its dependencies (like Postgres) and deploys them to Kubernetes

What’s Included?

create-node-app automatically sets up and manages:

  • A complete web app with React, Express, Postgres
  • A deploy script, npm run deploy that deploys your frontend, backend, and dependencies to Kubernetes via deploy-node-app
  • A DB script npm run psql to explore your Dockerized Postgres
  • Creates a secure Dockerfile for containerized production deploys
  • Developer tools: ESLint, editorconfig, prettier, automatic reload
  • A meta-module system for easy development with services like PostgreSQL, and MongoDB, all with no configuration

create-node-app has a simple core, with a small ecosystem of meta-modules.

Meta-modules

Meta-modules are simple npm modules which include:

  • A validated and secure Node.js library
  • Metadata for configuring the library (Environment Variables)
  • A Docker Container Image which is validated to work with the chosen library
  • Metadata for configuring the service's container

For example, the postgres meta-module bundles the node-postgres library, a Postgres 11 Docker image, and knows how to connect your app to Postgres, without any configuration! Meta-modules wrap some of the complexity of building microservices with Node.js, allowing you to rapidly iterate with the stack of your choice!

Explore modules here or help create them if the one you want doesn't exist!

Free App Hosting

This project is maintained by KubeSail, which provides free-tier hosting. After creating an app, try npm run deploy to easily launch your app on a Kubernetes cluster with built-in load-balancing, HTTPS, and high-availability! KubeSail also offers the best way to iterate on Kubernetes resources - check us out!

Contributing

  • If you feel that this tool can be improved, or you've created a meta-module you want us to include, feel free to open an issue or pull request!
  • We also value contributions on deploy-node-app which contains the bulk of the logic for creating and deploying dev and prod environments.