Skip to content

Dhoondlai/backend

Repository files navigation

backend-dhoondlai

Description

Backend application for Dhoondlai. Built on ExpressTS, Deployed on Lambda. Node version: 20.11.1

Yarn version 1.22.22

Project setup

yarn install

Prettier Setup

Project uses prettier as code formatter. Therefore it is advised to install prettier vscode extension, configure prettier as default formatter for .ts files, and enable format on save in vscode settings. Follow these steps for complete walkthrough:

  • Install prettier extension from vscode marketplace
  • Open any .ts file in the project.
  • press ctrl + shift + P to open command pallete.
  • Search "Format Document With" and choose the option.
  • Select "Configure default formmatter"
  • Select "Prettier" from the list of formatters.

And you are done! All formatting will be applied when you save any file.

Alternatively, you can run command yarn prettier to format all files at once in the project.

ATTENTION!

It is highly advised to run the above command before commiting your code, in order to rectify any mis-formatting. (Once CI is designed, this need for checking formatting will no longer be needed).

sample .env file

create a .env file for environment variables. You can use the sample below:

PORT=3001
LAMBDA=false

Project run

Local:

run server with:

yarn dev

About

Backend application for Dhoondlai. Built on ExpressTS, Deployed on Lambda.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages