Skip to content

A simple bash/zsh script to make starting up a new Express app a breeze!

Notifications You must be signed in to change notification settings

malcolmkiano/exp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

exp

A simple bash/zsh script to make starting up a new Express app a breeze!

Prerequisites

You need to have node/npm and git installed on your local machine and available in your PATH.
For usage with Knex: you also need to have PostgreSQL set up on your machine.

Using it once:

If you just need to use the script without installing it:

To be run in the terminal

Wget

bash -c "$(wget -O - https://github.com/raw/malcolmkiano/exp/master/exp.sh)" <project name> <"project description">

Curl

sh -c "$(curl -fsSL https://github.com/raw/malcolmkiano/exp/master/exp.sh)" <project name> <"project description">

Replace <project name> and <project description> with your project name and description

Installation

To be run in the terminal

Wget

bash -c "$(wget -O - https://github.com/raw/malcolmkiano/exp/master/install.sh)"

Curl

sh -c "$(curl -fsSL https://github.com/raw/malcolmkiano/exp/master/install.sh)"

You're done, go ahead and run exp!

Usage

To use this, cd into your projects folder (or wherever really), and run the following command:

exp your-project-name

You could optionally include a description for your project:

exp your-project-name "Your project description"

This will scaffold an Express app for you. If you would like a template with Knex, use the -k option:

exp -k your-project-name

For help using exp, use the -h option:

exp -h

Configuration (not recommended)

You can configure this to clone your a different repository and set it up for you.
It is highly likely it won't entirely be compatible, so please make sure you know what you're doing.

To change the source repos, edit the variables below (located in ~/.exp/exp.sh)

# replace value with the url to your express/express-knex boilerplate
defaulturl="https://github.com/malcolmkiano/express-boilerplate.git"
defaulturl_knex="https://github.com/malcolmkiano/express-knex-boilerplate.git"

# replace value with the value in "name" in your boilerplate's package.json
defaultname="express-boilerplate"
defaultname_knex="express-knex-boilerplate"

# replace value with the value in "description" in your boilerplate's package.json
defaultdesc="A starting point for Express apps"
defaultdesc_knex="A starting point for Express apps with Knex and a PostgreSQL Database"

If you don't change these values, it'll start you off with my Express boilerplate or Express-Knex boilerplate, both of which are really good starting points.

About

A simple bash/zsh script to make starting up a new Express app a breeze!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages