Scalable dependency injection based express and typescript boilterplate for creating Restful APIs
Report Bug · Request Feature
Table of Contents
-
Make sure Node(>=v14.18.0) is installed on your system. If you don't have Node installed on your system then download the the Node installer from the above website.
-
Install Yarn package manager.
-
Clone the repository
https://github.com/subhadipghs/node-express-typescript-boilerplate sample-app
-
Install NPM packages
yarn install
-
Create a .env file in the root directory of the project and set the following environment variables. (Checkout .env.example for example of .env file)
POSTGRES_USERNAME= POSTGRES_PASSWORD= POSGRES_DB= POSTGRES_HOST= POSTGRES_PORT= NODE_ENV= PORT=
-
Run the app in development mode
npm run watch
-
Open terminal and paste the command below
curl --request GET --url http://localhost:3000/ping