After installing Node.JS you can install TypeScript
and nodemon
by running this command on your terminal.
npm install -g typescript nodemon
After installing GIT you can simply run this command to get the project.
git clone https://github.com/hekima-dev/sample-bapig-backend-server.git
Then open the project with your favorite editor, if you're using Visual Studio Code run the following command to open the project.
code sample-bapig-backend-server
To install dependencies used on the project please run the following command on your terminal.
npm install
To install dev dependencies used on the project please run the following command on your terminal.
npm install -D
To start development server run the following command on your terminal.
npm run dev
The server will start (running) on:
http://localhost:1000
To compile backend server please run the following command on your terminal.
npm run build
It will compile all the TypeScript
code and produces JavaScript
code in dist
directory.
To start your production run the following command on your terminal. NOTE: After building (compiling) backend server
npm run prod
The production server will start (running) on:
http://localhost:1000