Initialize nodejs typescript project API with one click
To use this script you need to clone this repository or copy the initNodeTypeScript.sh
to one of your files with execute permission
and execute it
git clone https://github.com/midoelhawy/inti-nodejs-typescript-project.git
cd inti-nodejs-typescript-project
./initNodeTypeScript.sh
echo "alias initnodeapi=\"bash ${PWD}/initNodeTypeScript.sh\"" >> ~/.bashrc
source ~/.bashrc
Great!
Now to start a new project you need only to execute this command initnodeapi
in any directory of your Host
the steps of creation is :
===========================STEP 1================================
- Where You want to initialize this project ? [Leave it blank to start here] :
/mnt/workspaces/test/op-api
I am going to init project in /mnt/workspaces/test/op-api
===========================STEP 2================================
- Project name(without spaces and upper cases) :
my-api
- Auther :
Ahmed Hekal
now your project is ready!
type npm run start
to run your project on 8080 port