Development Environment Setup Guide for Windows OS
-
Go to run (Windows + R) and type appwiz.cpl
-
Click Turn windows features on or off in the left hand side menu
-
Check “Windows subsystem for Linux” and click OK. After the successful installation restart your PC.
-
Go to windows store and search for Ubuntu 18 and install
-
During first run on Ubuntu, configure the user name and password
- Execute below commands:
- sudo apt update
- sudo apt install libpq-dev python3-dev (Project needs python version <= 3.6, which is default for Ubuntu 18)
- sudo apt install python3-pip
-
Get the repository by using below command:
git clone https://github.com/BlitzKraft/saythanks.io.git
-
Saythanks uses
pipenv
as dependency managment tool. You can read more aboutpipenv
here. Installpipenv
usingpip
. Install the required packages by using below command:pipenv install
Note: If any error is faced in requirements.txt installation, Run the below command:
python3 -m pip install --upgrade pip python3 -m pip install --upgrade pillow
-
Go to Auth0 login website - https://auth0.com/docs/login
-
-
Open “Saythanks” application (Regular web applications) to get the below keys:
-
And add Call back URL as below (in the same page) and click “Save”:
-
Click APIs in Applications (Refer below image )and Create API
-
Click Auth0 Management API - > API Explorer - > Copy Token (AUTH0_JWT_V2_TOKEN)
-
** Go to https://app.sendgrid.com
-
-
Make a copy of
sample.env
and save it as.env
. Then update environmental variables values related to project in.env
file. -
Go to “https://www.enterprisedb.com/downloads/postgres-postgresql-downloads” , download and install the required version of “Postgres”
-
Go inside “postgres” installation path
-
Configure password and create database in “Postgres” (Refer below image):
-
Download the schema.sql file from the link : “https://github.com/BlitzKraft/saythanks.io/tree/master/saythanks/sqls” and paste it in required local drive
-
To Configure development environment in Visual Source Code:
-
Go to powershell - > and then Type
-
wsl
-
Go to saythanks folder (Refer below image) -> and then Type
-
code .
-
It will automatically open the project in Visual Source Code (VSC)
- Godspeed!
Steps to resolve AUTH0 expiry:
- Go to Auth0 login website - https://auth0.com/docs/login
-
Click Applications in the left hand side menu - > Applications
-
Click “API Explorer Application”
- Go to APIs tab and Click “Auth0 Management API”
- Go to API Explorer tab and Copy the token (as mentioned in below image):