diff --git a/.env.example b/.env.example index 5addf15..d6cb06b 100644 --- a/.env.example +++ b/.env.example @@ -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 \ No newline at end of file +# 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 \ No newline at end of file diff --git a/README.md b/README.md index 972950b..3e5a0fc 100644 --- a/README.md +++ b/README.md @@ -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