/basic-server

Basic NestJs REST API to perform CURD operations from firestore.

Primary LanguageTypeScriptMIT LicenseMIT

NestJs Server Application

Coverage Status Node.js CI

Basic NestJs REST API to perform CURD operations from firestore. Initial mock data is retrieved from https://jsonplaceholder.typicode.com/

Clone Instructions

  • Clone the repository
  • Generate serviceAccountKey.json from firebase console
  • Add it in root directory as serviceAccountKey.json

Build Instructions

  • yarn install (first time)
  • yarn start:dev

HTTP Requests

All possible HTTP request sample are present within http directory. Some of the sample ones are listed below

Users Specific

Posts Specific

Generating serviceAccountKey.json file

  • Go to firebase console and navigate to specific project
  • Click on Settings -> Project Settings
  • Click on Service accounts
  • Select NodeJs under Admin SDK configuration snippet
  • Click on Generate New Provate Key
  • Click on Generate Key
  • Save the file as serviceAccountKey.json under projects root directory

Known Issues

  • Improve code coverage