From acc75dc6e189e832708c3060897890ce9f17f7ae Mon Sep 17 00:00:00 2001 From: aswarth123 Date: Sun, 17 Jan 2021 20:50:00 +0530 Subject: [PATCH 1/2] added the .env file --- .env | 3 +++ .gitignore | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 0000000..e5f74b5 --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +DATABASE_URL="postgresql://postgres:cv@localhost:5432/mlh-hackathon-starter-flask" +GITHUB_CLIENT_ID="*********************" +GITHUB_CLIENT_SECRET="************************" diff --git a/.gitignore b/.gitignore index 894a44c..8bc1d55 100644 --- a/.gitignore +++ b/.gitignore @@ -82,7 +82,6 @@ celerybeat-schedule *.sage.py # Environments -.env .venv env/ venv/ From 6ef61846d640f497c17bda37324631dc4c5cbb4d Mon Sep 17 00:00:00 2001 From: Aswarth Narayana Date: Sun, 17 Jan 2021 20:57:51 +0530 Subject: [PATCH 2/2] Update README.md Updated the datbase URL example and made changes according to the documentation. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index afcf162..5f9db95 100644 --- a/README.md +++ b/README.md @@ -57,8 +57,10 @@ You need to be able to connect to a database either on your own computer (locall You will need to know the connection URL for your application which we will call `DATABASE_URL` in your environment variables. Here is an example: ``` -postgresql://localhost:5432/mlh-hackathon-starter-flask +postgresql://Username:password@localhost:5432/mlh-hackathon-starter-flask + ``` +Here the credentials are of pg admin username and password. **Step 5: Update environment variables and run the Server.**