Loading repository data…
Loading repository data…
subhadipghs / repository
Boilerplate for Node.JS API using Typescript and Express.js using dependency injection
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
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