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

@space-uy/generator-space-backend

v2.1.0

Published

Yeoman generator for a typescript backend

Downloads

36

Readme

Space Backend

The following is a yeoman generator for a typescript backend, providing debugging and linting straight from Peritus-TS.

Quick Start

  1. Install yeoman if it isn't already installed:
npm install -g yo
  1. Install generator-space-backend:
npm install -g @space-uy/generator-space-backend
  1. Create a new repository and clone locally
  2. Go to local repository and run the following command:
yo @space-uy/space-backend
  1. Answer the wizard's questions
  2. Wait for packages to be installed...
  3. Get busy coding!

Note: If you run the wizard in a folder that isn't a repository, husky won't install properly.

Powered by Peritus-TS

A lot of the development features provided by this generator are from Peritus-TS. Take a look at the readme there if you wan't an explanation of the individual components that are available, such as debugging straight from typescript, and linting that is enforced even upon committing changes.

Current Version: 2 (Keystone)

Available features and backend structure may vary between different versions, so it's recommended to keep a copy of this readme in your project for future reference. If you intend on providing a readme specific to your project, feel free to rename this file to something like space-backend.md.

Features

Individual capabilities your backend can have are separated into features. By default, express is built-in since you wouldn't really have a backend without it (As such, it isn't considered a feature, but rather a core component to the backend).

For the current version, the available features are:

  • Typegoose: A typescript layer of Mongoose. (Note: This feature will require you to include a uri to a MongoDB database as DB_URI in the .env file)
  • TypeGraphQL: A typescript layer of GraphQL.
  • PassportJS: This feature is used for handling authentication. By default, it comes with Passport's Local Strategy

A List of available features can be accessed through the command: npm run dev:features:list
Add and remove features by calling: npm run dev:features (--force skips overwrite confirmations)

Middleware

These can be added to express endpoints to provide intermittent functionality.

For the current version, the available middleware are:

  • Requires: Checks that a request contains the specified queries, params and body
  • WithAuth: Requires that a requester be authenticated in order to access an endpoint

A List of available middleware can be accessed through the command: npm run dev:middleware:list
Add and remove middleware by calling npm run dev:middleware

Roadmap

Current progress of this project, as well as planned additions, can be viewed on our trello board