@command-shift/create-backend-app

0.9.0 • Public • Published

Create backend app

A CLI tool to allow the quick creation of a Command Shift backend app.

Usage

npx @command-shift/create-backend-app {app-name}

What does it do

The tool runs the following steps:

  • Accepts the following prompts from the user:

    • Project name (if not already provided).
    • Whether the user wants to install dependencies after the creation of the project.
  • Creates a new folder in the current folder the command is being run in. This will contain the same name as the app name provided

  • Installs all of the required dependencies if the user choses this option.

  • Initializes a new git repo.

Next steps

The tool requires a postgres database running to connect to. Ensure you have one running. With Docker:

docker run --name postgres -p 5432:5432 -e POSTGRES_PASSWORD=password -d postgres

Ensure you create a .env file in the new project. Copy the values across from the .env.example file, and change any values required.

Dependents (0)

Package Sidebar

Install

npm i @command-shift/create-backend-app

Weekly Downloads

0

Version

0.9.0

License

ISC

Unpacked Size

83 kB

Total Files

42

Last publish

Collaborators

  • dragosrobertn
  • joeatcommandshift
  • lukebrobbs