diff --git a/.gitignore b/.gitignore index 865e45b..3f29884 100644 --- a/.gitignore +++ b/.gitignore @@ -1,38 +1,2 @@ -.gradle -build/ -!gradle/wrapper/gradle-wrapper.jar -!**/src/main/**/build/ -!**/src/test/**/build/ - -### STS ### -.apt_generated -.classpath -.factorypath -.project -.settings -.springBeans -.sts4-cache -bin/ -!**/src/main/**/bin/ -!**/src/test/**/bin/ - -### IntelliJ IDEA ### .idea -*.iws -*.iml -*.ipr -out/ -!**/src/main/**/out/ -!**/src/test/**/out/ - -### NetBeans ### -/nbproject/private/ -/nbbuild/ -/dist/ -/nbdist/ -/.nb-gradle/ - -### VS Code ### -.vscode/ - -src/main/resources/application.yaml \ No newline at end of file +config.yaml diff --git a/config_sample.yaml b/config_sample.yaml new file mode 100644 index 0000000..d9f1c02 --- /dev/null +++ b/config_sample.yaml @@ -0,0 +1,5 @@ +db_user: DATABASE_USERNAME +db_password: DATABASE_PASSWORD +db_host: DATABASE_HOST +db_name: DATABASE_NAME +db_port: 5432 diff --git a/package.json b/package.json new file mode 100644 index 0000000..42ae0c6 --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "name": "currency-chart", + "version": "1.0.0", + "description": "", + "main": "main.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "Redume", + "license": "ISC" +} diff --git a/postgresql.js b/postgresql.js new file mode 100644 index 0000000..6c8443e --- /dev/null +++ b/postgresql.js @@ -0,0 +1,8 @@ +const pg = require("pg"); +const pool = new pg.Pool({ + user: "", + password: "", + host: "", + port: 5432, + database: "" +})