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

@code-fellows/aws-tools

v1.0.7

Published

AWS Tools and Templates

Downloads

8

Readme

AWS React Pipeline Builder

Builds a file called aws.yml that will build and deploy a React application to Cloudfront, from any github repository.

Once setup, AWS will automatically build and deploy your react application from your master branch at github.com to the AWS "CloudFront" service, making it publicly available. It will re-deploy on every check-in to master.

Installation

npm install -g @code-fellows/aws-tools

Usage

  • Ensure that your react application is properly deployed at github
  • From your development machine, change to the folder containing your application
  • Once you have the environment variables set, issue the following command:
  • aws-react-yaml
  • The tool will construct a file called aws.yml in your project's root folder
  • Login to your AWS account and go to the Cloud Formation tool and create a new stack
  • Choose the "Upload" option and upload this aws.yml file
  • Follow the on screen prompts
  • It takes about :30 minutes the first time
  • On subsequent pushes to your master branch, AWS will detect and deploy for you, usually in about 5 minutes

Requirements

A react application sourced at github, with a valid package.json file

A "build" script command in your package.json which creates a /build folder in the root of your app.

This tool requires that that the following enviornment variables be set.

You may use a .env file to set them. If you do, then run this tool from the folder that contains the .env file

  • AWS_GITHUB_URL -- The URL to the repository at github containing your application
  • AWS_GITHUB_REPO -- The raw name of your repository
  • AWS_GITHUB_USER -- Your github login id
  • AWS_GITHUB_TOKEN -- A developer token from your github account that grants 'repo' access
  • AWS_APP -- Unique Name for your app at AWS
  • AWS_BUILD -- Unique Name for your build at AWS
  • AWS_BUCKET -- Unique Bucket Name where your website will be sourced at AWS
  • AWS_PROJECT -- Unique Name for your project at AWS

Caveats/Notes

  • DO NOT commit your .env file or the aws.yml files to your github repository.
    • They will contain your github token, which is forbidden to be uploaded publicly
  • DO NOT commit your react app's 'build' folder. The AWS system will automatically generate the build for you.