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
}
npm run serve
: runs Vite development server with hot reloadnpm run emulators
: runs Firebase emulatorsnpm run dev
: development server with emulatorsnpm run build
: production build. Optional parameterscompression=null(default)/brotli/gzip