From ef9e1e1fcedc7ccc6e99ad46797ac4b9b2666d94 Mon Sep 17 00:00:00 2001 From: ChayanikaArora26 Date: Tue, 21 Jul 2026 16:40:17 +1000 Subject: [PATCH 1/2] Added some more details in the readme file in regards with Postgres, Direnv, envrc and uv --- README.md | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 763a5ce..dcd91b1 100644 --- a/README.md +++ b/README.md @@ -23,10 +23,63 @@ We also include: ## Setup for development +Before you start you must have0 -## On Render.com +- Direnv +Direnv automatically loads and unloads environment variables depending on your curent directory. This is used when we have an envrc file in your project. Created per project isolated dev env. + +```bash +brew install direnv +``` + +- uv +Uv library supports managing Python projects which installs and resolves dependencies faster than pip and replaces multiple tools(like pip, venv etc) + +```bash +brew install uv +``` + +- Taskfile +Open source task runner and builder tool.Use for better cross platform build and ideal code generation. Utilizes YAML syntax to define tasks. + +```bash +brew install go-task/tap/go-task +brew install go-task +``` + +- Postgres (GRANT PRIVILEGES) +GRANT is used to define access privileges on the database object lie the table, foreign table, column , view. schema etc. + +```bash +grant ALL on database MY_DB to group MY_GROUP; +``` +``` +export DJANGO_SETTINGS_MODULE=rango.settings.dev +export POSTGRES_DB=django +export POSTGRES_HOST=localhost +export POSTGRES_USER=postgres +export POSTGRES_PASSWORD=password123 +export POSTGRES_PORT=5432 +``` +- .envrc +A configuration file used by direnv to perform automatic loading and unlaoding of env variables like API Keys. +```bash +vim .envrc +``` + +- Render + +```bash +brew update +brew install render +``` + + + + +## On Render.com ## Resources From a2984503aab1a15bf1c0b773952dd4362278be76 Mon Sep 17 00:00:00 2001 From: Dev Mukherjee Date: Tue, 21 Jul 2026 17:19:04 +1000 Subject: [PATCH 2/2] docs: updates readme structure --- README.md | 41 ++++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index dcd91b1..53f3178 100644 --- a/README.md +++ b/README.md @@ -23,30 +23,41 @@ We also include: ## Setup for development -Before you start you must have0 - -- Direnv -Direnv automatically loads and unloads environment variables depending on your curent directory. This is used when we have an envrc file in your project. Created per project isolated dev env. +`direnv` automatically loads and unloads environment variables from your `.envrc` file on your current directory. Install this via `brew`: ```bash brew install direnv ``` -- uv -Uv library supports managing Python projects which installs and resolves dependencies faster than pip and replaces multiple tools(like pip, venv etc) +Use this template for a `.envrc` file and adjust the values as needed. + +```envrc +export DJANGO_SETTINGS_MODULE=rango.settings.dev +export POSTGRES_DB=django +export POSTGRES_HOST=localhost +export POSTGRES_USER=postgres +export POSTGRES_PASSWORD=postgres +export POSTGRES_PORT=5432 +``` + +Each time you modify `.envrc`, run `direnv allow` to reload the environment variables. + +We use `uv` to manage Python dependencies. Install it and sync the dependencies: ```bash brew install uv +uv sync ``` -- Taskfile -Open source task runner and builder tool.Use for better cross platform build and ideal code generation. Utilizes YAML syntax to define tasks. +`Taskfile` is a cross-platform task runner and builder tool. Install it via `brew` and use it to run tasks defined in `Taskfile.yaml`. ```bash brew install go-task/tap/go-task brew install go-task +task # will show you the available tasks ``` + - Postgres (GRANT PRIVILEGES) GRANT is used to define access privileges on the database object lie the table, foreign table, column , view. schema etc. @@ -54,20 +65,8 @@ GRANT is used to define access privileges on the database object lie the table, grant ALL on database MY_DB to group MY_GROUP; ``` -``` -export DJANGO_SETTINGS_MODULE=rango.settings.dev -export POSTGRES_DB=django -export POSTGRES_HOST=localhost -export POSTGRES_USER=postgres -export POSTGRES_PASSWORD=password123 -export POSTGRES_PORT=5432 -``` + -- .envrc -A configuration file used by direnv to perform automatic loading and unlaoding of env variables like API Keys. -```bash -vim .envrc -``` - Render