Skip to content

darth-roman/bash-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bash Scripts

This is a tool to generate a model, a routing and a controller files, for expressjs(As intentded)

  • It checks if a folder controllers , models and routes exists, then creates the three files
  • If the directories do not exist, it creates them (no shit sherlock)

How to use:

  • download | clone the repo\
  • add the clones directory to your $PATH variable
  • It is recommended to add an alias for easy use
  • gen-mrc [entity] [file-extension]

Example:

$> gen-mrc User ts

Will generate these files:

  • controllers/UserController.ts,
  • models/User.ts,
  • routes/UserRoutes.ts

IMPORTANT: This is just a 0.0.1 version, some improvements will be added with time.

Generates and creates new SSH Key in your github account

How to use

$> gh-ssh-gen <key-name> <passphrase> <email> <ssh-title>

All Are required

IMPORTANT: Using this script will have to you use your own Personal Access Token, or Fine grained ones, just make sure you set SSH Key in permissions to read and write

More Information: Github Docs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages