Skip to content

Instantly share code, notes, and snippets.

@sidhantpanda
Created April 16, 2019 10:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sidhantpanda/65a036d6baa0ded13ec1d1876efef266 to your computer and use it in GitHub Desktop.
Save sidhantpanda/65a036d6baa0ded13ec1d1876efef266 to your computer and use it in GitHub Desktop.
#!/bin/bash
repoUrl=git@github.com:sidhantpanda/express-typescript-boilerplate.git
read -p "Enter project name [express-typescript-boilerplate]: " project_name
if [ "$project_name" == "" ]; then
project_name="express-typescript-boilerplate"
fi
echo -e "Generating project $project_name!\n\n"
git clone $repoUrl $project_name
cd $project_name
rm -rf .git
git init
echo -e "\n\nGenerated TypeScript Express server at $project_name"
echo -e "Installing dependencies \n\n"
npm i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment