You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: INSTALLATION.md
+58-4
Original file line number
Diff line number
Diff line change
@@ -29,14 +29,21 @@ This document provides instructions on how to set up and start a running instanc
29
29
-[Setting up .env LAST\_RESORT\_SUPERADMIN\_EMAIL parameter](#setting-up-env-last_resort_superadmin_email-parameter)
30
30
-[Configuring Google ReCAPTCHA](#configuring-google-recaptcha)
31
31
-[Setting up RECAPTCHA\_SECRET\_KEY in .env file](#setting-up-recaptcha_secret_key-in-env-file)
32
-
-[Setting up .env MAIL\_USERNAME and MAIL\_PASSWORD ReCAPTCHA Parameters](#setting-up-env-mail_username-and-mail_password-recaptcha-parameters)
32
+
-[Setting up .env MAIL\_USERNAME and MAIL\_PASSWORD ReCAPTCHA Parameters](#setting-up-env-mail_username-and-mail_password-recaptcha-parameters)
33
33
-[Setting up .env SMTP Variables](#setting-up-env-smtp-variables)
34
-
-[Setting up Logger configurations (optional)](#setting-up-logger-configurations-optional)
35
-
-[Setting up COLORIZE_LOGS in .env file](#setting-up-colorize_logs-in-env-file)
36
-
-[Setting up LOG_LEVEL in .env file](#setting-up-log_level-in-env-file)
34
+
-[Setting up Logger configurations *(optional)*](#setting-up-logger-configurations-optional)
35
+
-[Setting up COLORIZE\_LOGS in .env file](#setting-up-colorize_logs-in-env-file)
36
+
-[Setting up LOG\_LEVEL in .env file](#setting-up-log_level-in-env-file)
37
37
-[Configuring Google Firebase](#configuring-google-firebase)
38
38
-[Generate Firebase Keys for the Talawa Notification Service](#generate-firebase-keys-for-the-talawa-notification-service)
39
39
-[(Mobile Developers Only) Applying the Firebase Keys to the Talawa Mobile App](#mobile-developers-only-applying-the-firebase-keys-to-the-talawa-mobile-app)
@@ -406,6 +413,53 @@ The key generated in the previous step is in a format suitable for use in a mobi
406
413
407
414
1. Undo the changes made to the `firebase_options.dart` file by overwriting it with the version you saved at the beginning of this section.
408
415
416
+
# Importing Sample Database
417
+
418
+
Talawa API contains a sample database importing function which can be used to import sample database.
419
+
420
+
## Syntax:
421
+
422
+
```npm run import:sample-data -- [args]```
423
+
424
+
You can pass the following arguments while running this script.
425
+
426
+
-```--format```: Cleans the database before import. **Add this flag with caution. It will delete all of the existing data inside the talawa database.**
427
+
-```--items=```: Specify the items to add.
428
+
- Following ```items``` can be specified, separated with a comma ```,```
429
+
- ```users```: For users collection
430
+
- ```organizations```: For organizations collection
431
+
- ```events```: For events collection
432
+
- ```posts```: For posts collection
433
+
434
+
## Examples:
435
+
436
+
-```npm run import:sample-data```: This command will import the complete sample database without removing the existing data.
437
+
-```npm run import:sample-data -- --format```: This command will import the complete sample database after removing the existing data.
438
+
-```npm run import:sample-data -- --format --items=users,organizations```: This command will import the sample ```users``` and ```organizations``` collections after cleaning the existing data.
439
+
-```npm run import:sample-data -- --items=users,organizations```: This command will import the sample ```users``` and ```organizations``` collections without cleaning the existing data.
440
+
441
+
## Sample Data Overview:
442
+
443
+
The sample data contains organizations, users, events and posts. Here are the details for each of organizations and user account.
444
+
445
+
### User Accounts and Organizations:
446
+
447
+
| Email | Password | User Type | Joined Organization | Admin For |
0 commit comments