Skip to content

Postgres Node.js Express TypeScript application boilerplate with best practices for API development.

Notifications You must be signed in to change notification settings

chiragmehta900/node-typescript-boilerplate-postgres

Repository files navigation

Node TypeScript Boilerplate Postgres

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.

Tech Stack

Server: Node, Express

DataBase: postgres, typeorm

Run Locally

Clone the project

  git clone https://github.com/chiragmehta900/node-typescript-boilerplate-postgres

Go to the project directory

  cd node-typescript-boilerplate-postgres

Install dependencies

  npm install

Start the tsc

  npm run watch

Start the server

  npm run dev

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

PORT

TOKEN_SECRET

REFRESH_TOKEN_SECRET

Documentation

Documentation

API Reference

Create user

  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

login user

  POST /user/login
Parameter Type Description
phoneNumber number Required. Your API key
password string Required. Your API key

Get all users

  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.

Badges

Add badges from somewhere like: shields.io

MIT License

GPLv3 License

AGPL License

Author

Support

For support, email [email protected] or join our Slack channel.

About

Postgres Node.js Express TypeScript application boilerplate with best practices for API development.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages