Developer Ready: A comprehensive template. Works out of the box for most Node.js projects. This project is intended to be used with the latest Active LTS release of Node.js.
Server: Node, Express
DataBase: postgres, typeorm
Clone the project
git clone https://github.com/chiragmehta900/node-typescript-boilerplate-postgresGo to the project directory
cd node-typescript-boilerplate-postgresInstall dependencies
npm installStart the tsc
npm run watchStart the server
npm run devTo run this project, you will need to add the following environment variables to your .env file
PORT
TOKEN_SECRET
REFRESH_TOKEN_SECRET
POST /user/create| Parameter | Type | Description |
|---|---|---|
firstName |
string |
Required. Your API key |
lastName |
string |
Required. Your API key |
email |
string |
Required. Your API key |
password |
string |
Required. Your API key |
phoneNumber |
number |
Required. Your API key |
POST /user/login| Parameter | Type | Description |
|---|---|---|
phoneNumber |
number |
Required. Your API key |
password |
string |
Required. Your API key |
GET /user/list| Parameter | Type | Description |
|---|---|---|
id |
uuid |
Required. Your API key |
firstName |
string |
Required. Your API key |
lastName |
string |
Required. Your API key |
email |
string |
Required. Your API key |
password |
string |
Required. Your API key |
profileImage |
string |
Required. Your API key |
isActive |
boolean |
Required. Your API key |
phoneNumber |
number |
Required. Your API key |
tocken |
string |
Required. Your API key |
refreshToken |
string |
Required. Your API key |
A postman collection has been added for better understanding.
Add badges from somewhere like: shields.io
For support, email [email protected] or join our Slack channel.