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

@project-jetpack/beam-me-up

v1.0.3

Published

Creating a package to automate deployment to AWS

Downloads

14

Readme

Beam-me-up

A project for hacky heroku replacement

WARNING: This project was made for a school project and is considered extremely insecure by its authors see below for details[^1]

Requirements

  • AWS account
  • node/npm installed locally
  • github repo with an express server

Getting started

In this section we will

  • Created an IAM user that our software can interact with your AWS account through
  • Pulled that credential pair down to your local machine
  • Cloned down the repo locally
  • Installed dependancies
  • Launched an EC2 Cloud server
  • Configured security groups so that the service would be reachable

Step by step instructions

  • open AWS account
  • Create an IAM user for programmatic access (the aws-sdk will pull creds from your local computer)
  • leave that window open while you run aws configure from your local development command line
  • from local shell type
aws configure
  • you will see the following prompt
AWS Access Key ID [****************ESHN]: 
AWS Secret Access Key [****************Em9v]: 
Default region name [us-west-2]: 
Default output format [text]: 
  • enter your access key when prompted and same for your secret access key

  • region should be us-west-2 for this demo

  • run from your command line/terminal

npm i @project-jetpack/beam-me-up -g
  • TECH DEBT make sure the terminate line in app.js is commented out (line 16 app.js)
  • run the node command to create a server from our pre-formatted ami[^1]
beam-me-up-pem ; beam-me-up-EC2
  • TECH DEBT this may return a DNS name or it may not no biggie

  • Go back to the AWS EC2 console and select the newly launching instance

  • Click the instances checkbox

  • Click on the security group settings (launch-wizard-1 in this case) image

  • Click on inbound rules

  • Modify the instances security group rules to match these (port 22 rule is optional) img

  • Now you are ready to interact with the service!

Interacting with the service

  • After completing above getting set up steps
  • TECH DEBT run
beam-me-up
  • This will prompt you for a github repo the proper syntax for this entry is[^2]
https://github.com/401-midterms-kramer/demo-1
  • support for .env files right now requires the .env file to be in the same folder from where you run the node command above (path to the command will be different if you are not running it from the root directory of the repo)

  • after a short wait you will get back a link to your live site!

  • thats it, you have a live website

[^1]: This project uses basic authentication to validate permission against the server. The intention was to make this very easy to interact with for the end user, as a result the code for this repository has credentials hard coded. We ran out of time to automate short term credentials on this project and left a default user with username:password combo of lee:lee. We are well aware of how bad that is.

[^2]: Feel free to fork our example for static websites!