Skip to content

Commit

Permalink
feat: setup script for .env configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
disha1202 committed Jan 20, 2024
1 parent 45920a7 commit eed3bdc
Show file tree
Hide file tree
Showing 5 changed files with 1,584 additions and 8 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 eed3bdc

Please sign in to comment.