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

@rocketmakers/orbit-slingshot

v2.0.5

Published

> TODO: description

Downloads

13

Readme

orbit-slingshot

Accelerates the setup of a hosted, git managed templates repository.

Usage

This package is not intended to be installed as a dependency of any kind (e.g. dev, peer etc.). It contains a single executable .bin script, that will output the required files for an Orbit enabled database, infrastructure and backend API. The aim of this is to begin domain specific development in as short a time as possible.

Set up notification templates repository

In order to enable user flows that require notifications (e.g. invite user) you must first set up a notification templates repository. There is a separate package/.bin script to slingshot the set up of this type of repository, for full documentation see the README.md of @rocketmakers/orbit-slingshot-notify

Slingshot your repository

Run the following command and follow any subsequent CLI prompts, to execute the latest orbit-slingshot script version:

npx @rocketmakers/orbit-slingshot orbit-slingshot

The main consideration within these CLI prompts is whether you need the root level files adding to your repository. If you have already used a Rocketmakers starter kit of some description, e.g. a frontend boilerplate, then you do not need these root level files

Steps after executing orbit-slingshot script

  • [ ] Add a .gitignore file to the root of you repository (or add any relevant file paths such as client/*, to your existing .gitignore)
    • [ ] Add any relevant files you want ignored from source control
  • [ ] Find & replace all instances of <INSERT_PROJECT_NAME> with your project name (this will serve as your API name)
  • [ ] Find & replace all instances of <INSERT_PROJECT_DB_NAME> with your project name (this will serve as your database name)
  • [ ] If you added the root level files run a make install at the repository root directory
  • [ ] Run the following commands to set up your local database instances and run all of the necessary migrations
    • [ ] docker network create <INSERT_PROJECT_DB_NAME> (only required during first time set up)
    • [ ] cd <file_path_to_your_database_directory>
    • [ ] make run
  • [ ] Complete the following steps to set up and run the backend API locally
    • [ ] Populate the secret values in backend/src/secrets/dev.enc.json
      • [ ] Add *.dec.* to your .gitignore file values (values added to the above secrets are decrypted and output to secrets.dec.sh)
    • [ ] Populate the seed migration scripts in <path_to_db_files>/deploy/V001.initialSchema.sql
      • [ ] Add *.dec.* to your .gitignore file values (values added to the above secrets are decrypted and output to secrets.dec.sh)
    • [ ] Populate the values in backend/src/secrets/userCreationData.sh (this can be used for inviting users to the platform manually)
    • [ ] cd backend
    • [ ] make setup
    • [ ] make start-api

After following the above steps you should be able to run the following to invite a user locally:

make create-user ENVIRONMENT=dev