Kingomac / Series-List

A web to organize what series you're watching
1 stars 0 forks source link
custom-elements firebase firestore html5 nodejs typescript

Series List

Configuration

To build the app you need a config file app.config.ts and a .env with this structure:

Requires Nodejs >=14.x app.config.ts

export const FIREBASE_KEYS = {
  apiKey: "############################",
  authDomain: "########################",
  databaseURL: "#######################",
  projectId: "#########################",
  storageBucket: "#####################",
  messagingSenderId: "#################",
  appId: "#############################",
};

export const APP_NAME: string = "Series List Next";
export const SERIES_LIMIT: number = 14;
export const SUDO_EMAILS: (string | RegExp)[] =
  isDebug() ? [/@/] : ["someone@gmail.com"]; // Use regular expressions or strings
// This way in DEBUG any email is sudo and in PRODUCTION just someone@gmail.com

export function isDebug() {
  // this function is just to improve project readibility
  //return process.env.NODE_ENV == "dev"; this was used when I was using Workbox directly :)
  return true; // or false xd
}

Scripts