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
version: '3.7' | |
services: | |
mongo: | |
container_name: container-mongodb | |
image: mongo:latest | |
restart: always | |
ports: | |
- 27017:27017 | |
environment: |
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
print('Start #################################################################'); | |
db = db.getSiblingDB('api_prod_db'); | |
db.createUser( | |
{ | |
user: 'api_user', | |
pwd: 'api1234', | |
roles: [{ role: 'readWrite', db: 'api_prod_db' }], | |
}, | |
); |
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
var admin = require("firebase-admin"); | |
var serviceAccount = require("./serviceAccountKey.json"); | |
admin.initializeApp({ | |
credential: admin.credential.cert(serviceAccount), | |
}); |
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
{ | |
"DB_USERNAME": "test", | |
"DB_PASSWORD": "test", | |
"DB_PORT": "3306", | |
"DB_HOST": "127.0.0.1", | |
"DB_NAME": "test" | |
} |
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
{ | |
"DB_USERNAME": "prod_test", | |
"DB_PASSWORD": "prod_test", | |
"DB_PORT": "3306", | |
"DB_HOST": "127.0.0.1", | |
"DB_NAME": "prod_test" | |
} |
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 main | |
import ( | |
"github.com/tkanos/gonfig" | |
"fmt" | |
) | |
type Configuration struct { | |
DB_USERNAME string | |
DB_PASSWORD string |
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 main | |
import "fmt" | |
func main() { | |
fmt.Println("Dev Configuration\n") | |
configuration := GetConfig() | |
fmt.Println(configuration.DB_USERNAME) | |
fmt.Println(configuration.DB_PASSWORD) | |
fmt.Println(configuration.DB_PORT) |
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
Web | Mobile | Cloud | UI/UX | |
---|---|---|---|---|
8k | 10k | 12k | 10k |
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
version: '3.6' | |
services: | |
postgres: | |
image: postgres | |
restart: always | |
environment: | |
- DATABASE_HOST=127.0.0.1 | |
- POSTGRES_USER=root | |
- POSTGRES_PASSWORD=root | |
- POSTGRES_DB=root |
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 USER test WITH PASSWORD 'test' CREATEDB; | |
CREATE DATABASE test | |
WITH | |
OWNER = test | |
ENCODING = 'UTF8' | |
LC_COLLATE = 'en_US.utf8' | |
LC_CTYPE = 'en_US.utf8' | |
TABLESPACE = pg_default | |
CONNECTION LIMIT = -1; |