This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.datastax.oss.driver.api.core.CqlSession; | |
| import com.datastax.oss.driver.api.core.CqlSessionBuilder; | |
| import com.datastax.oss.driver.api.core.config.DefaultDriverOption; | |
| import com.datastax.oss.driver.api.core.config.DriverConfigLoader; | |
| import org.springframework.beans.factory.annotation.Value; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.context.annotation.Lazy; | |
| import java.net.InetSocketAddress; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| scylla: | |
| image: scylladb/scylla:latest | |
| container_name: scylla | |
| restart: unless-stopped | |
| ports: | |
| - "9042:9042" # CQL native transport | |
| - "9180:9180" # Alternator API (optional) | |
| - "10000:10000" # for scylla manager (optional) | |
| volumes: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "9 payment service Bank": "120001", | |
| "AB MICROFINANCE BANK": "090270", | |
| "ABBEY MORTGAGE BANK": "070010", | |
| "ABOVE ONLY MICROFINANCE BANK": "090260", | |
| "ABU MICROFINANCE BANK": "090197", | |
| "ACCESS BANK": "000014", | |
| "ACCESSMONEY": "100013", | |
| "ACCION MFB": "090134", | |
| "ADDOSSER MFBB": "090160", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| Body, | |
| ClassSerializerInterceptor, | |
| Controller, | |
| Delete, | |
| Get, | |
| HttpStatus, | |
| Logger, | |
| Param, | |
| Post, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| HttpException, | |
| HttpStatus, | |
| Injectable, | |
| UnauthorizedException, | |
| } from '@nestjs/common'; | |
| import { Repository } from 'typeorm'; | |
| import { User } from '@/users/entities/user.entity'; | |
| import { InjectRepository } from '@nestjs/typeorm'; | |
| import { JwtService } from '@nestjs/jwt'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { ExecutionContext, Inject, Injectable } from '@nestjs/common'; | |
| import { User } from '@/users/entities/user.entity'; | |
| import { AuthGuard, IAuthGuard } from '@nestjs/passport'; | |
| import { AuthHelper } from '@/users/auth/auth.helper'; | |
| @Injectable() | |
| export class JwtAuthGuard extends AuthGuard('jwt') implements IAuthGuard { | |
| @Inject(AuthHelper) helper: AuthHelper; | |
| public async canActivate(context: ExecutionContext): Promise<boolean> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package ng.lep.web.routes | |
| import akka.http.scaladsl.model.HttpMethods._ | |
| import akka.http.scaladsl.model.headers.{ | |
| `Access-Control-Allow-Credentials`, | |
| `Access-Control-Allow-Headers`, | |
| `Access-Control-Allow-Methods`, | |
| `Access-Control-Allow-Origin` | |
| } | |
| import akka.http.scaladsl.model.{ HttpResponse, StatusCodes } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| create database merchant_wallet_manaager_db; | |
| CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; | |
| create table if not exists merchant_profile | |
| ( | |
| id uuid not null unique primary key, | |
| name varchar default 100, | |
| email varchar default 100, | |
| secret varchar default 100, | |
| is_active boolean default false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.lepltd.db | |
| package postgres | |
| import java.util.UUID | |
| import akka.http.scaladsl.model.DateTime | |
| object Tables { | |
| case class MerchantProfile( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.lepltd.db | |
| package postgres | |
| import cats.effect.IO | |
| import com.lepltd.util.Config | |
| import java.time.{ LocalDate, LocalDateTime, LocalTime, ZoneId } | |
| import java.util.{ Date, UUID } | |
| import doobie.quill.DoobieContext | |
| import doobie.util.ExecutionContexts |
NewerOlder