This file contains 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
Library, Description, Link | |
SQLmodel, It is a , link |
This file contains 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
""" | |
This allows to use global variables inside the FastAPI application using async mode. | |
# Usage | |
Just import `g` and then access (set/get) attributes of it: | |
```python | |
from your_project.globals import g |
This file contains 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
const scanner = require('sonarqube-scanner').default; | |
scanner( | |
{ | |
serverUrl: 'http://localhost:9000', | |
token: "sqp_c8c45be1417f241c1214efb53f3a1d432229aa51", | |
options: { | |
'sonar.projectName': 'sonarqube-react-project', | |
'sonar.projectDescription': 'Here I can add a description of my project', | |
'sonar.projectKey': 'sonarqube-react-project', |
This file contains 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
version: "3.9" | |
services: | |
sonarqube: | |
container_name: "sonarqube-container" | |
image: "sonarqube:9.9.6-community" | |
volumes: | |
- ./sonarqube/extensions:/opt/sonarqube/extensions | |
- ./sonarqube/logs:/opt/sonarqube/logs | |
- ./sonarqube/data:/opt/sonarqube/data |
This file contains 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 { configureStore } from '@reduxjs/toolkit'; | |
import storage from 'redux-persist/lib/storage' | |
import { persistStore, persistReducer } from 'redux-persist'; | |
import { encryptTransform } from 'redux-persist-transform-encrypt'; | |
import thunk from 'redux-thunk' | |
import rootReducer from './rootReducer'; | |
const ENABLE_REDUX_DEV_TOOLS = true; | |
const encryptor = encryptTransform({ |
This file contains 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 { configureStore } from '@reduxjs/toolkit'; | |
import storage from 'redux-persist/lib/storage' | |
import { persistStore, persistReducer } from 'redux-persist'; | |
import thunk from 'redux-thunk' | |
import rootReducer from './rootReducer'; | |
const ENABLE_REDUX_DEV_TOOLS = true; | |
const persistConfig = { | |
key: 'root', |
This file contains 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 { combineReducers } from '@reduxjs/toolkit'; | |
import { reducer as counterReducer } from 'src/redux/slices/counter'; | |
const appReducer = combineReducers({ | |
counter: counterReducer, | |
}); | |
const rootReducer = (state, action) => { | |
if (action.type === 'RESET_WEBAPP') { | |
state = undefined; |
This file contains 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 { createSlice } from '@reduxjs/toolkit'; | |
/* STATE */ | |
const initialState = { | |
counter: 5, | |
}; | |
const slice = createSlice({ | |
name: 'counter', | |
initialState, | |
reducers: { |