Skip to content

Commit

Permalink
adding env variables in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kuldev committed Jun 3, 2020
1 parent a088d0f commit 757a57d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
17 changes: 7 additions & 10 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# Required
DRUPAL_HOST= # EZContent's base URL
DRUPAL_HOST= # EZContent's base URL


# Below parameter are also required
# To get the JSON for pages/node based on 'Layout Builder' module and menu

AUTH_USERNAME= # Drupal user (make sure this user has permission to get menus, manage layout)
AUTH_PASSWORD= # Drupal user password
CLIENT_ID= # Simple Oauth client id
CLIENT_SECRET= # Simple Oauth client secret
# Below variables are also required
# To get the JSON data for 'Layout Builder' and menu's
AUTH_USERNAME= # Drupal user (make sure this user has permission to get menu's, manage layout)
AUTH_PASSWORD= # Drupal user password
CLIENT_ID= # Drupal Simple Oauth client id
CLIENT_SECRET= # Drupal Simple Oauth client secret
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,18 @@ npm install
```bash
cp .env.example .env
```
(check .env.example or .env file to know more about variables)

4. Add environment variables in `.env` file
```bash
DRUPAL_HOST= # EZContent's base URL

# Below variables are also required
# To get the JSON data for 'Layout Builder' and menu's
AUTH_USERNAME= # Drupal user (make sure this user has permission to get menu's, manage layout)
AUTH_PASSWORD= # Drupal user password
CLIENT_ID= # Drupal Simple Oauth client id
CLIENT_SECRET= # Drupal Simple Oauth client secret
```
5. Make this codebase up and running
```bash
npm run dev
Expand Down

0 comments on commit 757a57d

Please sign in to comment.