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 axios from 'axios'; | |
import colorLib from '@kurkle/color'; | |
interface ChartOptions { | |
height?: number; | |
width?: number; | |
} | |
export const chartJsToImage = async ( | |
chartConfig: unknown, |
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: | |
db: | |
container_name: postgres_database | |
image: postgres:16.3 | |
volumes: | |
- ./postgres:/var/lib/postgresql/data | |
environment: | |
- POSTGRES_PASSWORD=123456 | |
restart: always | |
ports: |
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
{ | |
"window.zoomLevel": 2, | |
"workbench.colorTheme": "Aura Dracula Spirit (Soft)", | |
"workbench.iconTheme": "material-icon-theme", | |
"material-icon-theme.hidesExplorerArrows": true, | |
"workbench.tree.renderIndentGuides": "none", | |
"workbench.sideBar.location": "right", | |
"workbench.activityBar.visible": false, | |
"workbench.statusBar.visible": false, | |
"workbench.editor.showTabs": 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
import { bcryptAdapter } from '../../config'; | |
export const seedData = { | |
users: [ | |
{ name: 'Test 1', email: '[email protected]', password: bcryptAdapter.hash( '123456') }, | |
{ name: 'Test 2', email: '[email protected]', password: bcryptAdapter.hash( '123456') }, | |
{ name: 'Test 3', email: '[email protected]', password: bcryptAdapter.hash( '123456') }, |
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
export const regularExps = { | |
email: /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/, | |
} |
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
PORT=3000 | |
PUBLIC_PATH=public | |
POSTGRES_URL=postgresql://postgres:123456@localhost:5432/TODO | |
POSTGRES_USER=postgres | |
POSTGRES_DB=TODO | |
POSTGRES_PORT=5432 | |
POSTGRES_PASSWORD=123456 |
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
openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout server.key -out server.crt | |
NewerOlder