repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/shopify/mutations/address.ts
starters/shopify-next-tailwind/lib/shopify/mutations/address.ts
import { addressFragment } from '../queries/fragments'; export const REMOVE_ADDRESS = `#graphql mutation customerAddressDelete($customerAccessToken: String!, $id: ID!) { customerAddressDelete(customerAccessToken: $customerAccessToken, id: $id) { customerUserErrors { code field message ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/shopify/mutations/customer.ts
starters/shopify-next-tailwind/lib/shopify/mutations/customer.ts
export const CUSTOMER_UPDATE_MUTATION = `#graphql mutation customerUpdate($customerAccessToken: String!, $customer: CustomerUpdateInput!) { customerUpdate(customerAccessToken: $customerAccessToken, customer: $customer) { customerUserErrors { code field message } } } `;
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/shopify/queries/blog.ts
starters/shopify-next-tailwind/lib/shopify/queries/blog.ts
export const BLOGS_QUERY = `#graphql query Blog( $language: LanguageCode $blogHandle: String! $pageBy: Int! $cursor: String ) @inContext(language: $language) { blog(handle: $blogHandle) { title seo { title description } articles(first: $pageBy, after: $cursor) { edges { ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/shopify/queries/fragments.ts
starters/shopify-next-tailwind/lib/shopify/queries/fragments.ts
export const MEDIA_FRAGMENT = `#graphql fragment Media on Media { __typename mediaContentType alt previewImage { url } ... on MediaImage { id image { url width height altText } } ... on Video { id sources { mim...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/shopify/queries/orders.ts
starters/shopify-next-tailwind/lib/shopify/queries/orders.ts
export const CUSTOMER_ORDER_QUERY = `#graphql fragment Money on MoneyV2 { amount currencyCode } fragment AddressFull on MailingAddress { address1 address2 city company country countryCodeV2 firstName formatted id lastName name phone province province...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/shopify/queries/homepage.ts
starters/shopify-next-tailwind/lib/shopify/queries/homepage.ts
import { MEDIA_FRAGMENT, PRODUCT_CARD_FRAGMENT } from './fragments'; export const COLLECTION_CONTENT_FRAGMENT = `#graphql ${MEDIA_FRAGMENT} fragment CollectionContent on Collection { id handle title descriptionHtml heading: metafield(namespace: "hero", key: "title") { value } byli...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/shopify/queries/cart.ts
starters/shopify-next-tailwind/lib/shopify/queries/cart.ts
import { cartFragment } from './fragments'; export const getCartQuery = `#graphql ${cartFragment} query CartQuery($cartId: ID!, $country: CountryCode, $language: LanguageCode) @inContext(country: $country, language: $language) { cart(id: $cartId) { ...CartFragment } } `;
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/shopify/queries/product.ts
starters/shopify-next-tailwind/lib/shopify/queries/product.ts
import { productFragment } from './fragments'; export const PRODUCT_CARD_FRAGMENT = `#graphql fragment ProductCard on Product { id title publishedAt handle variants(first: 1) { nodes { id image { url altText width height } ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/shopify/queries/collection.ts
starters/shopify-next-tailwind/lib/shopify/queries/collection.ts
import { PRODUCT_CARD_FRAGMENT } from './fragments'; export const COLLECTIONS_QUERY = `#graphql query Collections( $country: CountryCode $language: LanguageCode $first: Int $last: Int $startCursor: String $endCursor: String ) @inContext(country: $country, language: $language) { collecti...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/shopify/queries/search.ts
starters/shopify-next-tailwind/lib/shopify/queries/search.ts
import { PRODUCT_CARD_FRAGMENT } from './fragments'; export const SEARCH_QUERY = `#graphql ${PRODUCT_CARD_FRAGMENT} query PaginatedProductsSearch( $country: CountryCode $endCursor: String $first: Int $language: LanguageCode $last: Int $searchTerm: String $startCursor: String ) @inCont...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/shopify/queries/layout.ts
starters/shopify-next-tailwind/lib/shopify/queries/layout.ts
export const LAYOUT_QUERY = `#graphql query layoutMenus( $language: LanguageCode $headerMenuHandle: String! $footerMenuHandle: String! ) @inContext(language: $language) { shop { id name description primaryDomain { url } brand { logo { image...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/shopify/queries/user.ts
starters/shopify-next-tailwind/lib/shopify/queries/user.ts
export const CUSTOMER_QUERY = `#graphql query CustomerDetails( $customerAccessToken: String! $country: CountryCode $language: LanguageCode ) @inContext(country: $country, language: $language) { customer(customerAccessToken: $customerAccessToken) { firstName lastName phone ema...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/shopify-next-tailwind/lib/shopify/queries/policies.ts
starters/shopify-next-tailwind/lib/shopify/queries/policies.ts
export const POLICIES_QUERY = `#graphql fragment PolicyIndex on ShopPolicy { id title handle } query PoliciesIndex { shop { privacyPolicy { ...PolicyIndex } shippingPolicy { ...PolicyIndex } termsOfService { ...PolicyIndex } refund...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/nuxt3-pinia-vuetify/nuxt.config.ts
starters/nuxt3-pinia-vuetify/nuxt.config.ts
// https://v3.nuxtjs.org/api/configuration/nuxt.config export default defineNuxtConfig({ modules: ['@pinia/nuxt'], pinia: { autoImports: ['defineStore', ['defineStore', 'definePiniaStore']], }, css: ['vuetify/lib/styles/main.sass'], build: { transpile: ['vuetify'], }, vite: { define: { 'process.env.DEBU...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/nuxt3-pinia-vuetify/store/counterStore.ts
starters/nuxt3-pinia-vuetify/store/counterStore.ts
export interface CounterState { counter: number; } export const useCounterStore = defineStore('counter', { state: (): CounterState => ({ counter: 0, }), });
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/nuxt3-pinia-vuetify/plugins/vuetify.ts
starters/nuxt3-pinia-vuetify/plugins/vuetify.ts
// plugins/vuetify.js import { createVuetify } from 'vuetify'; import * as components from 'vuetify/components'; import * as directives from 'vuetify/directives'; export default defineNuxtPlugin((nuxtApp) => { const Vuetify = createVuetify({ ssr: true, theme: { defaultTheme: 'customTheme', themes: { cus...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/bootstrap-app.ts
starters/express-typeorm-postgres/src/bootstrap-app.ts
import express, { Express, NextFunction, Request, Response } from 'express'; import expressOasGenerator, { SPEC_OUTPUT_FILE_BEHAVIOR } from 'express-oas-generator'; import { getReasonPhrase, StatusCodes } from 'http-status-codes'; import { apiRouter } from './modules/router'; import { corsMiddleware } from './middlewar...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/main.ts
starters/express-typeorm-postgres/src/main.ts
// eslint-disable-next-line @typescript-eslint/no-var-requires require('dotenv').config(); import { bootstrapApp } from './bootstrap-app'; import { cacheRedisClient } from './cache/redis-cache-client'; import { initialiseDataSource } from './db/datasource'; import { LogHelper } from './utils/log-helper'; const PORT = ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/cache/cache.ts
starters/express-typeorm-postgres/src/cache/cache.ts
import { cachified, redisCacheAdapter } from 'cachified'; import { GetFreshValue } from 'cachified/dist/common'; import * as process from 'process'; import { CACHE_HEALTH, cacheRedisClient } from './redis-cache-client'; const FIVE_MINUTES_IN_MS = 300_000; const REDIS_CACHE_TTL = process.env.REDIS_CACHE_TTL_IN_MS ? pa...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/cache/redis-cache-client.ts
starters/express-typeorm-postgres/src/cache/redis-cache-client.ts
import process from 'process'; import { createClient } from 'redis'; import { LogHelper } from '../utils/log-helper'; const REDIS_CACHE_HOST = process.env.REDIS_CACHE_HOST || 'localhost'; const REDIS_CACHE_PORT = process.env.REDIS_CACHE_PORT ? parseInt(process.env.REDIS_CACHE_PORT) : 6379; export const cacheRedisCl...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/db/run-seeders.ts
starters/express-typeorm-postgres/src/db/run-seeders.ts
// eslint-disable-next-line @typescript-eslint/no-var-requires require('dotenv').config(); import { DataSource, DataSourceOptions } from 'typeorm'; import { runSeeders, SeederOptions } from 'typeorm-extension'; import { Technology } from './entities/technology.entity'; import TechnologySeeder from './seeding/technology...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/db/datasource.ts
starters/express-typeorm-postgres/src/db/datasource.ts
import { DataSource } from 'typeorm'; const DATABASE_ENABLE_LOGGING = process.env.DATABASE_ENABLE_LOGGING === 'true'; const DATABASE_ENABLE_SYNC = process.env.DATABASE_ENABLE_SYNC === 'true'; export const dataSource = new DataSource({ type: 'postgres', host: process.env.DATABASE_HOST || 'localhost', port: parseInt...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/db/entities/technology.entity.ts
starters/express-typeorm-postgres/src/db/entities/technology.entity.ts
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm'; @Entity({ name: 'technology' }) export class Technology { @PrimaryGeneratedColumn() id!: number; @Column({ length: 256, }) displayName!: string; @Column('text') description!: string; }
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/db/seeding/technology-seeder.ts
starters/express-typeorm-postgres/src/db/seeding/technology-seeder.ts
import { DataSource } from 'typeorm'; import { Seeder, SeederFactoryManager } from 'typeorm-extension'; import { Technology } from '../entities/technology.entity'; export default class TechnologySeeder implements Seeder { public async run(dataSource: DataSource, factoryManager: SeederFactoryManager): Promise<void> { ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/interfaces/schema.ts
starters/express-typeorm-postgres/src/interfaces/schema.ts
/** * This file was auto-generated by openapi-typescript. * Do not make direct changes to the file. */ export interface paths { '*': { /** * */ options: { /** * */ responses: {}; }; }; '/health': { /** /health */ get: { /** /health */ responses: { /** @description OK */ 200: { ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/interfaces/results.ts
starters/express-typeorm-postgres/src/interfaces/results.ts
import { Result } from '../constants/result'; export interface SuccessResult<T> { type: Result.SUCCESS; data: T; } export interface NotFoundResult { type: Result.NOT_FOUND; message: string; } export interface ErrorResult { type: Result.ERROR; message: string; error?: unknown; }
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/utils/log-helper.spec.ts
starters/express-typeorm-postgres/src/utils/log-helper.spec.ts
import { ALL_LOG_LEVELS } from './log-helper'; type LogMethods = 'log' | 'info' | 'debug' | 'warn' | 'error'; type LogLevels = 'INFO' | 'DEBUG' | 'WARN' | 'ERROR'; describe(`LogHelper`, () => { let consoleSpy; beforeEach(() => { jest.resetModules(); }); afterEach(() => { jest.resetAllMocks(); }); describe...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/utils/log-helper.ts
starters/express-typeorm-postgres/src/utils/log-helper.ts
/* eslint-disable @typescript-eslint/no-explicit-any */ import * as process from 'process'; export const ALL_LOG_LEVELS = 'INFO,DEBUG,WARN,ERROR'; type LogLevel = 'INFO' | 'DEBUG' | 'WARN' | 'ERROR'; const LOG_LEVELS: LogLevel[] = (process.env.ALLOWED_LOG_LEVELS || ALL_LOG_LEVELS).split( ',' ) as LogLevel[]; const ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/queue/job-processor.ts
starters/express-typeorm-postgres/src/queue/job-processor.ts
import { Job } from 'bullmq'; import { LogHelper } from '../utils/log-helper'; module.exports = async function jobProcessor(job: Job): Promise<'DONE'> { await job.log(`Started processing job`); LogHelper.info(`Job with id ${job.id}`, job.data); await job.updateProgress(100); return 'DONE'; };
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/queue/queue.ts
starters/express-typeorm-postgres/src/queue/queue.ts
import { Queue, Job, Worker } from 'bullmq'; import path from 'node:path'; import { LogHelper } from '../utils/log-helper'; import { DEFAULT_REMOVE_CONFIG, queueName, REDIS_QUEUE_HOST, REDIS_QUEUE_PORT, } from './config.constants'; export const defaultQueue = new Queue(queueName, { connection: { host: REDIS_QUE...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/queue/config.constants.ts
starters/express-typeorm-postgres/src/queue/config.constants.ts
export const REDIS_QUEUE_HOST = process.env.REDIS_QUEUE_HOST || 'localhost'; export const REDIS_QUEUE_PORT = process.env.REDIS_QUEUE_PORT ? parseInt(process.env.REDIS_QUEUE_PORT) : 6479; export const queueName = 'defaultQueue'; export const DEFAULT_REMOVE_CONFIG = { removeOnComplete: { age: 3600, }, removeOnFa...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/modules/router.ts
starters/express-typeorm-postgres/src/modules/router.ts
import { Router } from 'express'; import { HealthController } from './health/health.controller'; import { QueueRouter } from './queue/queue.controller'; import { TechnologyController } from './technology/technology.controller'; const router = Router(); router.use('/health', HealthController.router); router.use('/tech...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/modules/technology/technology.controller.ts
starters/express-typeorm-postgres/src/modules/technology/technology.controller.ts
import { Router } from 'express'; import { createTechnology } from './handlers/create-technology'; import { deleteTechnology } from './handlers/delete-technology'; import { getAllTechnologies } from './handlers/get-all-technologies'; import { getTechnology } from './handlers/get-technology'; import { updateTechnology }...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/modules/technology/services/technology.service.ts
starters/express-typeorm-postgres/src/modules/technology/services/technology.service.ts
import { InsertResult } from 'typeorm'; import { Result } from '../../../constants/result'; import { dataSource } from '../../../db/datasource'; import { Technology } from '../../../db/entities/technology.entity'; import { ErrorResult, NotFoundResult, SuccessResult } from '../../../interfaces/results'; export type Cre...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/modules/technology/handlers/create-technology.ts
starters/express-typeorm-postgres/src/modules/technology/handlers/create-technology.ts
import { NextFunction, Request, Response } from 'express'; import { StatusCodes } from 'http-status-codes'; import { clearCacheEntry } from '../../../cache/cache'; import { Result } from '../../../constants/result'; import { LogHelper } from '../../../utils/log-helper'; import { insertTechnology } from '../services/tec...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/modules/technology/handlers/update-technology.spec.ts
starters/express-typeorm-postgres/src/modules/technology/handlers/update-technology.spec.ts
/* eslint-disable @typescript-eslint/no-explicit-any */ import { dataSource } from '../../../db/datasource'; import { updateTechnology } from './update-technology'; jest.mock('../../../cache/cache', () => ({ clearCacheEntry: () => void 0, })); const MOCK_REQUEST: any = { params: { technologyId: '1', }, body: { ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/modules/technology/handlers/create-technology.spec.ts
starters/express-typeorm-postgres/src/modules/technology/handlers/create-technology.spec.ts
/* eslint-disable @typescript-eslint/no-explicit-any */ import { dataSource } from '../../../db/datasource'; import { createTechnology } from './create-technology'; jest.mock('../../../cache/cache', () => ({ clearCacheEntry: () => void 0, })); const MOCK_REQUEST: any = { body: { name: 'Jest', }, }; const MOCK_RE...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/modules/technology/handlers/delete-technology.ts
starters/express-typeorm-postgres/src/modules/technology/handlers/delete-technology.ts
import { NextFunction, Request, Response } from 'express'; import { StatusCodes } from 'http-status-codes'; import { clearCacheEntry } from '../../../cache/cache'; import { Result } from '../../../constants/result'; import { LogHelper } from '../../../utils/log-helper'; import { deleteTechnologyEntry } from '../service...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/modules/technology/handlers/update-technology.ts
starters/express-typeorm-postgres/src/modules/technology/handlers/update-technology.ts
import { NextFunction, Request, Response } from 'express'; import { StatusCodes } from 'http-status-codes'; import { clearCacheEntry } from '../../../cache/cache'; import { Result } from '../../../constants/result'; import { LogHelper } from '../../../utils/log-helper'; import { updateTechnologyEntry } from '../service...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/modules/technology/handlers/get-technology.ts
starters/express-typeorm-postgres/src/modules/technology/handlers/get-technology.ts
import { NextFunction, Request, Response } from 'express'; import { getReasonPhrase, StatusCodes } from 'http-status-codes'; import { useCache } from '../../../cache/cache'; import { Result } from '../../../constants/result'; import { LogHelper } from '../../../utils/log-helper'; import { findTechnology, TechnologyResu...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/modules/technology/handlers/get-all-technologies.ts
starters/express-typeorm-postgres/src/modules/technology/handlers/get-all-technologies.ts
import { NextFunction, Request, Response } from 'express'; import { StatusCodes } from 'http-status-codes'; import { useCache } from '../../../cache/cache'; import { Result } from '../../../constants/result'; import { LogHelper } from '../../../utils/log-helper'; import { getTechnologies, TechnologiesResult } from '../...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/modules/technology/handlers/get-all-technologies.spec.ts
starters/express-typeorm-postgres/src/modules/technology/handlers/get-all-technologies.spec.ts
/* eslint-disable @typescript-eslint/no-explicit-any */ import { dataSource } from '../../../db/datasource'; import { getAllTechnologies } from './get-all-technologies'; jest.mock('../../../cache/cache', () => ({ useCache: (key, callback) => callback(), })); const MOCK_REQUEST: any = {}; const MOCK_RESPONSE: any = {...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/modules/technology/handlers/get-technology.spec.ts
starters/express-typeorm-postgres/src/modules/technology/handlers/get-technology.spec.ts
/* eslint-disable @typescript-eslint/no-explicit-any */ import { dataSource } from '../../../db/datasource'; import { getTechnology } from './get-technology'; jest.mock('../../../cache/cache', () => ({ useCache: (key, callback) => callback(), })); const MOCK_REQUEST: any = { params: { technologyId: '1', }, }; co...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/modules/technology/handlers/delete-technology.spec.ts
starters/express-typeorm-postgres/src/modules/technology/handlers/delete-technology.spec.ts
/* eslint-disable @typescript-eslint/no-explicit-any */ import { dataSource } from '../../../db/datasource'; import { deleteTechnology } from './delete-technology'; jest.mock('../../../cache/cache', () => ({ clearCacheEntry: () => void 0, })); const MOCK_REQUEST: any = { params: { technologyId: '1', }, }; const ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/modules/health/health.controller.ts
starters/express-typeorm-postgres/src/modules/health/health.controller.ts
import { Router } from 'express'; import { getHealth } from './handlers/get-health'; const healthRouter = Router(); healthRouter.get('/', getHealth); export const HealthController = { router: healthRouter };
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/modules/health/services/health.service.ts
starters/express-typeorm-postgres/src/modules/health/services/health.service.ts
import { RedisClient } from 'bullmq'; import { redisHealthCheck } from '../../../cache/redis-cache-client'; import { Result } from '../../../constants/result'; import { dataSource } from '../../../db/datasource'; import { ErrorResult, SuccessResult } from '../../../interfaces/results'; import { defaultQueue } from '../...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/modules/health/handlers/get-health.ts
starters/express-typeorm-postgres/src/modules/health/handlers/get-health.ts
import { Request, Response } from 'express'; import { getReasonPhrase, StatusCodes } from 'http-status-codes'; import { Result } from '../../../constants/result'; import { checkDatabaseConnection, checkRedisCacheConnection, checkRedisQueHealth, } from '../services/health.service'; export async function getHealth(re...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/modules/queue/queue.controller.ts
starters/express-typeorm-postgres/src/modules/queue/queue.controller.ts
import { NextFunction, Request, Response, Router } from 'express'; import { addJob } from '../../queue/queue'; const queueRouter = Router(); queueRouter.post('/', async (req: Request, res: Response, next: NextFunction) => { const job = await addJob(req.body); res.json({ jobId: job.id }); return next(); }); export...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/middlewares/cors/index.ts
starters/express-typeorm-postgres/src/middlewares/cors/index.ts
import cors from 'cors'; let middleware = cors(); if (process.env.CORS_ALLOWED_ORIGINS) { const allowedOrigins: string[] = (process.env.CORS_ALLOWED_ORIGINS || '').split(','); if (allowedOrigins.length) { const corsOptions = { origin: (origin, callback) => { if (allowedOrigins.some((allowedOrigin) => allow...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-typeorm-postgres/src/constants/result.ts
starters/express-typeorm-postgres/src/constants/result.ts
export enum Result { SUCCESS = 'SUCCESS', NOT_FOUND = 'NOT_FOUND', ERROR = 'ERROR', }
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/vue3-xstate-css/cypress.config.ts
starters/vue3-xstate-css/cypress.config.ts
import { defineConfig } from 'cypress'; export default defineConfig({ viewportHeight: 720, viewportWidth: 1280, component: { specPattern: 'src/tests/*.{cy,spec}.{js,ts,jsx,tsx}', devServer: { framework: 'vue', bundler: 'vite', }, }, });
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/vue3-xstate-css/env.d.ts
starters/vue3-xstate-css/env.d.ts
/// <reference types="vite/client" />
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/vue3-xstate-css/vite.config.ts
starters/vue3-xstate-css/vite.config.ts
import { fileURLToPath, URL } from 'node:url'; import { defineConfig } from 'vite'; import vue from '@vitejs/plugin-vue'; // https://vitejs.dev/config/ export default defineConfig({ plugins: [vue()], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)), }, }, });
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/vue3-xstate-css/src/main.ts
starters/vue3-xstate-css/src/main.ts
import { createApp } from 'vue'; import App from './App.vue'; import router from './router'; import { inspect } from '@xstate/inspect'; import './assets/main.css'; const devMode = import.meta.env.VITE_DEV_MODE; if (devMode === 'debug') { inspect({ iframe: false, }); } const app = createApp(App); // we're making...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/vue3-xstate-css/src/machines/counterMachine.ts
starters/vue3-xstate-css/src/machines/counterMachine.ts
import { createMachine, assign } from 'xstate'; export const counterMachine = createMachine( { id: 'Counter', predictableActionArguments: true, schema: { context: {} as { count: number }, events: {} as { type: 'INC' } | { type: 'DEC' } | { type: 'RESET' }, }, initial: 'active', context: { count: ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/vue3-xstate-css/src/machines/greetMachine.ts
starters/vue3-xstate-css/src/machines/greetMachine.ts
import { createMachine, assign, type DoneInvokeEvent } from 'xstate'; import { fetchGreeting } from '../utils/fetchGreeting'; interface GreetContext { query: string; message: string; error: string; } export const greetMachine = (query: string) => { return createMachine( { id: 'greet', predictableActionArg...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/vue3-xstate-css/src/tests/GreetView.cy.ts
starters/vue3-xstate-css/src/tests/GreetView.cy.ts
import GreetView from '../views/GreetView.vue'; describe('<GreetView />', () => { it('renders', () => { cy.mount(GreetView); }); it('should display a message with my greeting when I pass in a greeting', () => { cy.mount(GreetView, { global: { provide: { query: 'from Cypress!', }, }, }); ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/vue3-xstate-css/src/tests/CounterView.cy.ts
starters/vue3-xstate-css/src/tests/CounterView.cy.ts
import CounterView from '../views/CounterView.vue'; describe('<CounterView />', () => { it('renders', () => { cy.mount(CounterView); }); it('should have an initial value of 0', () => { cy.mount(CounterView); cy.get('[data-cy=count]').should('contain.text', '0'); }); it('should increase the value when the ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/vue3-xstate-css/src/utils/fetchGreeting.ts
starters/vue3-xstate-css/src/utils/fetchGreeting.ts
export const fetchGreeting = async (message: string) => { const encodedMessage = encodeURIComponent(message); const endpoint = `https://api.starter.dev/.netlify/functions/server/hello?greeting=${encodedMessage}`; return await fetch(endpoint).then((result) => result.text()); };
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/vue3-xstate-css/src/router/index.ts
starters/vue3-xstate-css/src/router/index.ts
import { createRouter, createWebHistory } from 'vue-router'; const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes: [ { path: '/', name: 'home', component: () => import('../views/HomeView.vue'), }, { path: '/counter', name: 'counter', component: () => impor...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/vue3-xstate-css/cypress/support/e2e.ts
starters/vue3-xstate-css/cypress/support/e2e.ts
// *********************************************************** // This example support/index.js is processed and // loaded automatically before your test files. // // This is a great place to put global configuration and // behavior that modifies Cypress. // // You can change the location of this file or turn off // au...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/vue3-xstate-css/cypress/support/commands.ts
starters/vue3-xstate-css/cypress/support/commands.ts
/// <reference types="cypress" /> // *********************************************** // This example commands.ts shows you how to // create various custom commands and overwrite // existing commands. // // For more comprehensive examples of custom // commands please read more here: // https://on.cypress.io/custom-comma...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/vue3-xstate-css/cypress/support/component.ts
starters/vue3-xstate-css/cypress/support/component.ts
// *********************************************************** // This example support/component.ts is processed and // loaded automatically before your test files. // // This is a great place to put global configuration and // behavior that modifies Cypress. // // You can change the location of this file or turn off /...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/vite.config.ts
starters/qwik-graphql-tailwind/vite.config.ts
import { defineConfig } from 'vite'; import { qwikVite } from '@builder.io/qwik/optimizer'; import { qwikCity } from '@builder.io/qwik-city/vite'; import tsconfigPaths from 'vite-tsconfig-paths'; export default defineConfig(() => { return { plugins: [qwikCity(), qwikVite(), tsconfigPaths()], test: { //...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/.storybook/preview.ts
starters/qwik-graphql-tailwind/.storybook/preview.ts
// Based on https://github.com/BuilderIO/qwik/discussions/787#discussioncomment-3715103 import { JSXNode } from '@builder.io/qwik'; import { QWIK_LOADER } from '@builder.io/qwik/loader/index'; import { render } from '@builder.io/qwik'; import '../src/global.css'; eval(QWIK_LOADER); export const decorators = [ (Story...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/.storybook/main.ts
starters/qwik-graphql-tailwind/.storybook/main.ts
// Based on https://github.com/BuilderIO/qwik/discussions/787#discussioncomment-3715103 import { mergeConfig } from 'vite'; const viteTsconfig = require('vite-tsconfig-paths'); const tsconfigPaths = viteTsconfig.default; module.exports = { stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/src/entry.ssr.tsx
starters/qwik-graphql-tailwind/src/entry.ssr.tsx
/** * WHAT IS THIS FILE? * * SSR entry point, in all cases the application is render outside the browser, this * entry point will be the common one. * * - Server (express, cloudflare...) * - npm run start * - npm run preview * - npm run build * */ import { renderToStream, RenderToStreamOptions } from '@build...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/src/entry.dev.tsx
starters/qwik-graphql-tailwind/src/entry.dev.tsx
/* * WHAT IS THIS FILE? * * Development entry point using only client-side modules: * - Do not use this mode in production! * - No SSR * - No portion of the application is pre-rendered on the server. * - All of the application is running eagerly in the browser. * - More code is transferred to the browser than i...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/src/entry.preview.tsx
starters/qwik-graphql-tailwind/src/entry.preview.tsx
/* * WHAT IS THIS FILE? * * It's the bundle entry point for `npm run preview`. * That is, serving your app built in production mode. * * Feel free to modify this file, but don't remove it! * * Learn more about Vite's preview command: * - https://vitejs.dev/config/preview-options.html#preview-options * */ imp...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/src/root.tsx
starters/qwik-graphql-tailwind/src/root.tsx
import { component$ } from '@builder.io/qwik'; import { QwikCityProvider, RouterOutlet, ServiceWorkerRegister } from '@builder.io/qwik-city'; import { RouterHead } from './components/router-head/router-head'; import './global.css'; export default component$(() => { /** * The root of a QwikCity site always start ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/src/routes/service-worker.ts
starters/qwik-graphql-tailwind/src/routes/service-worker.ts
/* * WHAT IS THIS FILE? * * The service-worker.ts file is used to have state of the art prefetching. * https://qwik.builder.io/qwikcity/prefetching/overview/ * * Qwik uses a service worker to speed up your site and reduce latency, ie, not used in the traditional way of offline. * You can also use this file to ad...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/src/routes/layout.tsx
starters/qwik-graphql-tailwind/src/routes/layout.tsx
import { component$, Slot } from '@builder.io/qwik'; export default component$(() => { return ( <main class="min-h-screen bg-blue-50"> <section class="py-5"> <Slot /> </section> </main> ); });
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/src/routes/index.tsx
starters/qwik-graphql-tailwind/src/routes/index.tsx
import { component$ } from '@builder.io/qwik'; import type { DocumentHead } from '@builder.io/qwik-city'; import { Link } from '@builder.io/qwik-city'; import { APP_TITLE } from '~/utils/constants'; export default component$(() => { return ( <> <header class="mx-auto flex w-full items-center justify-center...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/src/routes/data-fetching/index.tsx
starters/qwik-graphql-tailwind/src/routes/data-fetching/index.tsx
import { component$ } from '@builder.io/qwik'; import { Link } from '@builder.io/qwik-city'; import { DocumentHead } from '@builder.io/qwik-city'; import { APP_TITLE } from '~/utils/constants'; import { DataFetching } from '~/components/data-fetching'; export default component$(() => { return ( <div class="mx-au...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/src/routes/counter-example/index.tsx
starters/qwik-graphql-tailwind/src/routes/counter-example/index.tsx
import { component$ } from '@builder.io/qwik'; import { Link } from '@builder.io/qwik-city'; import Counter from '~/components/counter'; export default component$(() => { return ( <div class="mx-auto w-3/5 text-center"> <h1 class="my-5 border-b-4 border-blue-600 py-4 text-[2rem] font-bold"> Increme...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/src/components/data-fetching/data-fetching.tsx
starters/qwik-graphql-tailwind/src/components/data-fetching/data-fetching.tsx
import { component$, useStore, Resource, useResource$ } from '@builder.io/qwik'; import { useLocation } from '@builder.io/qwik-city'; import { useStarterQuery } from '~/utils/useStarterQuery'; export const GET_GREETING = ` query HelloQuery($greeting: String!) { hello(greeting: $greeting) } `; interface HelloR...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/src/components/data-fetching/data-fetching.test.tsx
starters/qwik-graphql-tailwind/src/components/data-fetching/data-fetching.test.tsx
import { createDOM } from '@builder.io/qwik/testing'; import { describe, expect, it, vi, beforeAll } from 'vitest'; import { DataFetching } from './data-fetching'; const greetingValue = 'there'; vi.mock('@builder.io/qwik', async () => { const qwik = await vi.importActual<typeof import('@builder.io/qwik')>('@builder....
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/src/components/data-fetching/index.ts
starters/qwik-graphql-tailwind/src/components/data-fetching/index.ts
export * from './data-fetching';
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/src/components/data-fetching/data-fetching.stories.tsx
starters/qwik-graphql-tailwind/src/components/data-fetching/data-fetching.stories.tsx
import { Meta } from '@storybook/html'; import { DataFetching } from './data-fetching'; export default { title: 'Data Fetching', } as Meta; const Template = () => <DataFetching />; export const Demo = Template.bind({});
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/src/components/counter/counter.test.tsx
starters/qwik-graphql-tailwind/src/components/counter/counter.test.tsx
import { createDOM } from '@builder.io/qwik/testing'; import { describe, expect, it } from 'vitest'; import { Counter } from './counter'; describe('Counter component', function () { it('should render', async () => { const { render, screen } = await createDOM(); await render(<Counter />); expect(screen....
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/src/components/counter/index.tsx
starters/qwik-graphql-tailwind/src/components/counter/index.tsx
import { component$ } from '@builder.io/qwik'; import { DocumentHead } from '@builder.io/qwik-city'; import { APP_TITLE } from '~/utils/constants'; import { Counter } from './counter'; export default component$(() => { return ( <div> <Counter /> </div> ); }); export const head: DocumentHead = { ti...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/src/components/counter/counter.tsx
starters/qwik-graphql-tailwind/src/components/counter/counter.tsx
import { component$, $, useStore } from '@builder.io/qwik'; import { Button } from '~/components/button'; export const Counter = component$(() => { const store = useStore({ count: 0, }); const increment$ = $(() => { store.count++; }); const decrement$ = $(() => { store.count--; }); const r...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/src/components/counter/counter.stories.tsx
starters/qwik-graphql-tailwind/src/components/counter/counter.stories.tsx
import { Meta } from '@storybook/html'; import { Counter } from './counter'; export default { title: 'Counter', } as Meta; const Template = () => <Counter />; export const Demo = Template.bind({});
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/src/components/button/button.tsx
starters/qwik-graphql-tailwind/src/components/button/button.tsx
import { component$, PropFunction } from '@builder.io/qwik'; interface ButtonProps { action$: PropFunction<() => void>; title: string; } export const Button = component$((props: ButtonProps) => { return ( <button class="rounded bg-blue-500 py-2 px-4 align-middle text-xl font-semibold leading-none text...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/src/components/button/index.ts
starters/qwik-graphql-tailwind/src/components/button/index.ts
export * from './button';
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/src/components/router-head/router-head.tsx
starters/qwik-graphql-tailwind/src/components/router-head/router-head.tsx
import { component$ } from '@builder.io/qwik'; import { useDocumentHead, useLocation } from '@builder.io/qwik-city'; /** * The RouterHead component is placed inside of the document `<head>` element. */ export const RouterHead = component$(() => { const head = useDocumentHead(); const loc = useLocation(); retu...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/src/utils/useStarterQuery.ts
starters/qwik-graphql-tailwind/src/utils/useStarterQuery.ts
import { useQuery } from './useQuery'; export const useStarterQuery = async (query: string, variables: Record<string, unknown> = {}, signal?: AbortSignal) => { const { executeQuery$ } = useQuery(query); return executeQuery$({ url: 'https://api.starter.dev/.netlify/functions/graphql', variables, signal...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/src/utils/constants.ts
starters/qwik-graphql-tailwind/src/utils/constants.ts
export const APP_TITLE = 'qwik-graphql-tailwind starter.dev';
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/qwik-graphql-tailwind/src/utils/useQuery.ts
starters/qwik-graphql-tailwind/src/utils/useQuery.ts
// Inspired by https://github.com/TahaSh/qwikql/blob/main/src/useQuery.ts import { $ } from '@builder.io/qwik'; export interface QueryOptions { url: string; variables?: Record<string, unknown>; signal?: AbortSignal; } export const useQuery = (query: string) => { const executeQuery$ = $( async ({ url, sig...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/angular-apollo-tailwind/.storybook/typings.d.ts
starters/angular-apollo-tailwind/.storybook/typings.d.ts
declare module '*.md' { const content: string; export default content; }
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/angular-apollo-tailwind/src/test.ts
starters/angular-apollo-tailwind/src/test.ts
// This file is required by karma.conf.js and loads recursively all the .spec and framework files import 'zone.js/testing'; import { getTestBed } from '@angular/core/testing'; import { BrowserDynamicTestingModule, platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; declare const req...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/angular-apollo-tailwind/src/polyfills.ts
starters/angular-apollo-tailwind/src/polyfills.ts
/** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra polyfills to this file. * * This file is divided into 2 sections: * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. * 2. Application imports. Files imported...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/angular-apollo-tailwind/src/main.ts
starters/angular-apollo-tailwind/src/main.ts
import { enableProdMode } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; import { environment } from './environments/environment'; if (environment.production) { enableProdMode(); } platformBrowserDynamic() .bootstrap...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/angular-apollo-tailwind/src/app/app.component.spec.ts
starters/angular-apollo-tailwind/src/app/app.component.spec.ts
import { TestBed } from '@angular/core/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ declarations: [AppComponent], }).compileComponents(); }); it('should create the app', () => { const ...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/angular-apollo-tailwind/src/app/app.component.ts
starters/angular-apollo-tailwind/src/app/app.component.ts
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', }) export class AppComponent { title = 'angular-apollo-tailwind'; }
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/angular-apollo-tailwind/src/app/app.module.ts
starters/angular-apollo-tailwind/src/app/app.module.ts
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppComponent } from './app.component'; import { FetchExampleComponent } from './fetch-example/fetch-example.component'; import { CounterExampleComponent } from './counter-example/counter-example.component'; im...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/angular-apollo-tailwind/src/app/graphql.module.ts
starters/angular-apollo-tailwind/src/app/graphql.module.ts
import { NgModule } from '@angular/core'; import { ApolloModule, APOLLO_OPTIONS } from 'apollo-angular'; import { ApolloClientOptions, InMemoryCache } from '@apollo/client/core'; import { HttpLink } from 'apollo-angular/http'; const uri = 'https://api.starter.dev/graphql'; // <-- add the URL of the GraphQL server here...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/angular-apollo-tailwind/src/app/app-routing.module.ts
starters/angular-apollo-tailwind/src/app/app-routing.module.ts
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { HomeComponent } from './home/home.component'; import { CounterExampleComponent } from './counter-example/counter-example.component'; import { FetchExampleComponent } from './fetch-example/fetch-example.component';...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/angular-apollo-tailwind/src/app/fetch-example/fetch-example.component.ts
starters/angular-apollo-tailwind/src/app/fetch-example/fetch-example.component.ts
import { Component, OnInit } from '@angular/core'; import { Observable, of } from 'rxjs'; import { catchError, map, finalize, take } from 'rxjs/operators'; import { Apollo, gql } from 'apollo-angular'; export const GET_GREETING = gql` query HelloQuery($greeting: String!) { hello(greeting: $greeting) } `; @Com...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false
thisdot/starter.dev
https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/angular-apollo-tailwind/src/app/fetch-example/fetch-example.stories.ts
starters/angular-apollo-tailwind/src/app/fetch-example/fetch-example.stories.ts
import { Story, Meta, moduleMetadata } from '@storybook/angular'; import { ApolloModule } from 'apollo-angular'; import { FetchExampleComponent } from './fetch-example.component'; export default { title: 'Example/Fetch Example', component: FetchExampleComponent, decorators: [ moduleMetadata({ declarat...
typescript
MIT
593639aa39999fcb7e8f4cab65c6f768fd4a3a09
2026-01-05T04:59:58.752174Z
false