Skip to content

Commit

Permalink
feat: setup script for .env configuration file (#1461)
Browse files Browse the repository at this point in the history
* feat: setup script for .env configuration file

* Update documentation

* updated setup.ts

* Update documentation
  • Loading branch information
disha1202 authored Jan 20, 2024
1 parent 9c58d1b commit 97994b9
Show file tree
Hide file tree
Showing 184 changed files with 3,517 additions and 488 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ REACT_APP_BACKEND_WEBSOCKET_URL=ws://localhost:4000/graphql

# If you want to logs Compiletime and Runtime error , warning and info write YES or if u want to
# keep the console clean leave it blank
ALLOW_LOGS=""
ALLOW_LOGS=
8 changes: 8 additions & 0 deletions INSTALLATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ npm install

It's important to configure Talawa-Admin. Here's how to do it.

You can use our interactive setup script for the configuration. Use the following command for the same.

```
npm run setup
```

All the options in "setup" can be done manually as well and here's how to do it. - [Creating .env file](#creating-env-file)

## Creating .env file

A file named .env is required in the root directory of talawa-admin for storing environment variables used at runtime. It is not a part of the repo and you will have to create it. For a sample of `.env` file there is a file named `.env.example` in the root directory. Create a new `.env` file by copying the contents of the `.env.example` into `.env` file. Use this command:
Expand Down
Loading

0 comments on commit 97994b9

Please sign in to comment.