@command-shift/create-backend-app
v0.9.0
Published
A CLI tool to allow the quick creation of a Command Shift backend app.
Downloads
20
Keywords
Readme
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.