Skip to content

LimeLightCards/api

Repository files navigation

Limelight API

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

Setting Up Authentication

We use Firebase for authentication. To set that up, sign in here and create a new project. Afterwards, go to the Settings area of the project, then Project Settings. You should be in the General tab, but if not, switch over to it. In here, Project ID is what you will need for FIREBASE_PROJECT_ID (see Environment Variables).

You will also need to make a service account. To do so, go to the Service accounts tab, and hit Generate new private key. This will give you a JSON file that you need for FIREBASE_SERVICE_ACCOUNT_JSON (see Environment Variables), but it will need to be slightly transformed first. The JSON needs to be minified (all newlines removed), and that can be done for example with a tool like JSON minifier (although, a more secure alternative is preferred).

Environment Variables

The following values are required:

  • FIREBASE_PROJECT_ID - see Setting Up Authentication
  • FIREBASE_SERVICE_ACCOUNT_JSON - see Setting Up Authentication

The following values are optional:

  • MONGODB_URI - defaults to mongodb://localhost:27017/limelight

Running the app

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published