This document outlines the deployment flows for both staging and production environments.
graph TD
A[Push to Main Branch] --> B[Build Application]
B --> C[Run Tests]
{ | |
"data": { | |
"plan": { | |
"id": 16, | |
"created_at": "2025-01-19T17:02:08.818763+03:00", | |
"updated_at": "2025-01-19T17:02:08.818763+03:00", | |
"deleted_at": null, | |
"name": "plan 1", | |
"start_point": { | |
"latitude": 40.748817, |
import React, { useEffect } from "react"; | |
import { useOne, useResourceParams, useInvalidate, HttpError, useCustomMutation } from "@refinedev/core"; | |
import { SheetHeader, SheetTitle } from "@app/components/sheet"; | |
import { Sheet, SheetContent } from "@app/components/sheet"; | |
import type { CreateOrUpdateProfileRequest, ErrorResponseDto, ProfileEntity } from "@app/api"; | |
import { Button } from "@app/@shadcn/ui/button"; |
import { plainToClass } from 'class-transformer'; | |
import { PromptEntity } from '@app/modules/prisma/prompt.entity'; | |
import { AdminEntity } from '@app/modules/prisma/admin.entity'; | |
import { ProfileEntity } from '@app/modules/prisma/profile.entity'; | |
import { UserEntity } from '@app/modules/prisma/user.entity'; | |
type Constructor<T = {}> = new (...args: any[]) => T; | |
function WithClassMapping<T extends Constructor>(Base: T) { |
package main | |
import ( | |
"github.com/gofiber/fiber/v2" | |
"github.com/gofiber/fiber/v2/log" | |
"gorm.io/driver/postgres" | |
"gorm.io/gorm" | |
"gorm.io/gorm/clause" | |
"gorm.io/gorm/logger" | |
) |
release_type=$1 | |
version="" | |
if [ -z "$release_type" ]; then | |
release_type="--patch" | |
fi | |
if [ "$release_type" = "--major" ]; then | |
release_type="major" | |
elif [ "$release_type" = "--minor" ]; then |
{ | |
"airports": [ | |
{ | |
"refCode": "SAW", | |
"city": "İstanbul Anadolu", | |
"name": "Sabiha Gökçen Havalimanı - İstanbul Anadolu" | |
}, | |
{ | |
"refCode": "IST", | |
"city": "İstanbul Avrupa", |
asdasdasd |
# frozen_string_literal: true | |
class ImageUploader < CarrierWave::Uploader::Base | |
# Include RMagick or MiniMagick support: | |
# include CarrierWave::RMagick | |
include CarrierWave::MiniMagick | |
# Choose what kind of storage to use for this uploader: | |
storage :file | |
# storage :fog |
require 'facebookbusiness' | |
require 'awesome_print' | |
access_token = '' | |
ad_account_id = '' | |
app_secret = '' | |
page_id = '' | |
app_id = '' | |
FacebookAds.configure do |config| |